diff options
author | Jiapeng Chong <[email protected]> | 2023-01-31 14:34:56 +0800 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2023-02-01 19:55:41 -0800 |
commit | bc61761394ce0f0cc35c6fc60426f08d83d0d488 (patch) | |
tree | 08aa30bb157de5e34f6baa77e10e793c4cb2e298 /tools/perf/scripts/python | |
parent | 074dd3b35aaa4807306268c1654200d3608ebbf3 (diff) |
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 <[email protected]>
Link: https://bugzilla.openanolis.cn/show_bug.cgi?id=3896
Signed-off-by: Jiapeng Chong <[email protected]>
Reviewed-by: Simon Horman <[email protected]>
Reviewed-by: David Ahern <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions