[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-Id:
<175521961017.502863.2162622592450676762.git-patchwork-notify@kernel.org>
Date: Fri, 15 Aug 2025 01:00:10 +0000
From: patchwork-bot+netdevbpf@...nel.org
To: Xichao Zhao <zhao.xichao@...o.com>
Cc: ecree.xilinx@...il.com, andrew+netdev@...n.ch, davem@...emloft.net,
edumazet@...gle.com, kuba@...nel.org, pabeni@...hat.com,
netdev@...r.kernel.org, linux-net-drivers@....com,
linux-kernel@...r.kernel.org
Subject: Re: [PATCH] sfc: replace min/max nesting with clamp()
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@...nel.org>:
On Tue, 12 Aug 2025 14:50:26 +0800 you 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@...o.com>
> ---
> drivers/net/ethernet/sfc/efx_channels.c | 4 ++--
> drivers/net/ethernet/sfc/falcon/efx.c | 5 ++---
> drivers/net/ethernet/sfc/siena/efx_channels.c | 4 ++--
> 3 files changed, 6 insertions(+), 7 deletions(-)
Here is the summary with links:
- sfc: replace min/max nesting with clamp()
https://git.kernel.org/netdev/net-next/c/6398d8a856fb
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
Powered by blists - more mailing lists