diff options
author | Jiapeng Chong <jiapeng.chong@linux.alibaba.com> | 2023-01-31 09:34:56 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-02-02 06:55:41 +0300 |
commit | bc61761394ce0f0cc35c6fc60426f08d83d0d488 (patch) | |
tree | 08aa30bb157de5e34f6baa77e10e793c4cb2e298 /net/ipv6/ip6_gre.c | |
parent | 074dd3b35aaa4807306268c1654200d3608ebbf3 (diff) | |
download | linux-bc61761394ce0f0cc35c6fc60426f08d83d0d488.tar.xz |
ipv6: ICMPV6: Use swap() instead of open coding it
Swap is a function interface that provides exchange function. To avoid
code duplication, we can use swap function.
./net/ipv6/icmp.c:344:25-26: WARNING opportunity for swap().
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3896
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Simon Horman <simon.horman@corigine.com>
Reviewed-by: David Ahern <dsahern@kernel.org>
Link: https://lore.kernel.org/r/20230131063456.76302-1-jiapeng.chong@linux.alibaba.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'net/ipv6/ip6_gre.c')
0 files changed, 0 insertions, 0 deletions