Re: [PATCH] samples/bpf: xdpsock: Use swap() instead of open coding it

From: Song Liu
Date: Thu Jan 13 2022 - 13:59:32 EST




> On Jan 13, 2022, at 8:22 AM, Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx> wrote:
>
> Clean the following coccicheck warning:
>
> ./samples/bpf/xdpsock_user.c:632:22-23: WARNING opportunity for swap().
>
> Reported-by: Abaci Robot <abaci@xxxxxxxxxxxxxxxxx>
> Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>

Acked-by: Song Liu <songliubraving@xxxxxx>