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)
commit0cf765fb00ce083c017f2571ac449cf7912cdb06
treee83f3254de7fd22dc0eeeb1a474e8b33ff88d07e
parentccd21ec5b8dd9b8a528a70315cee95fc1dd79d20
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