Re: [PATCH] net/mlx5: DR, Use swap() instead of open coding it

From: Saeed Mahameed
Date: Wed Dec 06 2023 - 17:37:30 EST


On 17 Nov 15:19, Jiapeng Chong wrote:
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@xxxxxxxxxxxxxxxxx>
Closes: https://bugzilla.openanolis.cn/show_bug.cgi?id=7580
Signed-off-by: Jiapeng Chong <jiapeng.chong@xxxxxxxxxxxxxxxxx>
---

applied to net-next-mlx5
-Saeed.