]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethernet: Use swap() instead of open coding it
authorJiapeng Chong <jiapeng.chong@linux.alibaba.com>
Thu, 12 May 2022 06:09:05 +0000 (14:09 +0800)
committerDavid S. Miller <davem@davemloft.net>
Fri, 13 May 2022 10:26:59 +0000 (11:26 +0100)
commit36865ec5db7e937c0cba236e3ae0356c9c943193
tree81d59eb534d4dab10ad39466166a91646aa15abd
parent9501964d60bc3bb64a5c019af8a62a27145abef4
net: ethernet: Use swap() instead of open coding it

Clean the following coccicheck warning:

./drivers/net/ethernet/sunplus/spl2sw_driver.c:217:27-28: WARNING
opportunity for swap().

./drivers/net/ethernet/sunplus/spl2sw_driver.c:222:27-28: WARNING
opportunity for swap().

Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sunplus/spl2sw_driver.c