diff options
author | 2023-11-17 15:19:47 +0800 | |
---|---|---|
committer | 2023-12-13 18:03:32 -0800 | |
commit | 952f9a5f4b0904255ef3dfa58f325fa3e5f045fb (patch) | |
tree | 63662696ebe065f68adc83bc95d59fe867f56544 /net/core/dev.c | |
parent | net/mlx5: devcom, Add component size getter (diff) | |
download | linux-rng-952f9a5f4b0904255ef3dfa58f325fa3e5f045fb.tar.xz linux-rng-952f9a5f4b0904255ef3dfa58f325fa3e5f045fb.zip |
net/mlx5: DR, 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.
./drivers/net/ethernet/mellanox/mlx5/core/steering/dr_action.c:1254:50-51: WARNING opportunity for swap().
Reported-by: Abaci Robot <abaci@linux.alibaba.com>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7580
Signed-off-by: Jiapeng Chong <jiapeng.chong@linux.alibaba.com>
Reviewed-by: Przemek Kitszel <przemyslaw.kitszel@intel.com>
Signed-off-by: Saeed Mahameed <saeedm@nvidia.com>
Diffstat (limited to 'net/core/dev.c')
0 files changed, 0 insertions, 0 deletions