]> git.baikalelectronics.ru Git - kernel.git/commit
sfc: Use swap() instead of open coding it
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Wed, 5 Jan 2022 15:22:37 +0000 (23:22 +0800)
committerDavid S. Miller <davem@davemloft.net>
Thu, 6 Jan 2022 12:39:36 +0000 (12:39 +0000)
commit6893d48b5d75a2bb0ba6325523f6160de39aee99
treee83f3254de7fd22dc0eeeb1a474e8b33ff88d07e
parente35dc8cb511859e790889ed0509dd2d58b116959
sfc: Use swap() instead of open coding it

Clean the following coccicheck warning:

./drivers/net/ethernet/sfc/efx_channels.c:870:36-37: WARNING opportunity
for swap().

./drivers/net/ethernet/sfc/efx_channels.c:824:36-37: WARNING opportunity
for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Acked-by: Martin Habets <habetsm.xilinx@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/efx_channels.c