[PATCH v2] nvmet: replace max(a, min(b, c)) by clamp(val, lo, hi)
Keith Busch
kbusch at kernel.org
Thu Mar 20 13:14:30 PDT 2025
On Thu, Mar 20, 2025 at 03:53:00PM +0800, shao.mingyin at zte.com.cn wrote:
> From: Li Haoran <li.haoran7 at zte.com.cn>
>
> 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.
More information about the Linux-nvme
mailing list