Re: [PATCH] net: replace ternary operator with min()

From: Jakub Kicinski
Date: Mon Oct 24 2022 - 15:11:01 EST


On Sun, 23 Oct 2022 21:07:00 +0800 (GMT+08:00) KaiLong Wang wrote:
> Fix the following coccicheck warning:
>
> net/ipv4/igmp.c:2621: WARNING opportunity for min()
> net/ipv4/igmp.c:2574: WARNING opportunity for min()
> net/ipv4/ip_sockglue.c:285: WARNING opportunity for min()
>
> Signed-off-by: KaiLong Wang <wangkailong@xxxxxxx>

Please don't send coccicheck fixes for net and drivers/net.
(And I mean *you* specifically shouldn't send them since you
don't even build test the fix.)