Re: [PATCH] sfc: replace min/max nesting with clamp()

From: Edward Cree
Date: Thu Aug 14 2025 - 09:47:34 EST


On 12/08/2025 07:50, Xichao Zhao wrote:
> The clamp() macro explicitly expresses the intent of constraining
> a value within bounds.Therefore, replacing min(max(a, b), c) with
> clamp(val, lo, hi) can improve code readability.
>
> Signed-off-by: Xichao Zhao <zhao.xichao@xxxxxxxx>

Reviewed-by: Edward Cree <ecree.xilinx@xxxxxxxxx>