Re: [PATCH v2] nvmet: replace max(a, min(b, c)) by clamp(val, lo, hi)
From: Keith Busch
Date: Thu Mar 20 2025 - 16:14:38 EST
On Thu, Mar 20, 2025 at 03:53:00PM +0800, shao.mingyin@xxxxxxxxxx wrote:
> From: Li Haoran <li.haoran7@xxxxxxxxxx>
>
> This patch replaces max(a, min(b, c)) by clamp(val, lo, hi) in the nvme
> driver. The clamp() macro explicitly expresses the intent of constraining
> a value within bounds, improving code readability.
Thanks, applied to nvme-6.15.