Re: [PATCH] ipv6: ICMPV6: Use swap() instead of open coding it

From: David Ahern
Date: Thu Jan 13 2022 - 23:30:08 EST


On 1/13/22 9:17 AM, Jiapeng Chong wrote:
> Clean the following coccicheck warning:
>
> ./net/ipv6/icmp.c:348:25-26: WARNING opportunity for swap().
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
> ---
> net/ipv6/icmp.c | 5 +----
> 1 file changed, 1 insertion(+), 4 deletions(-)
>

looks fine to me but net-next is closed; resubmit when it opens.

Also, you need to add the tree to the subject line so in this case:

[PATCH net-next] ipv6: ICMPV6: Use swap() instead of open coding it