net/mlx5: remove redundant macro
PATCH 1/1 net/mlx5: remove redundant macro
The macro MLX5_BITSHIFT() is not used anymore,
and is redundant with RTE_BIT64(),
so it can be removed.
--- drivers/net/mlx5/mlx5_utils.h | 3 --- 1 file changed, 3 deletions(-)
drivers/net/mlx5/mlx5_utils.h +0 -3
@@ -22,9 +22,6 @@#include "mlx5_defs.h" -/* Convert a bit number to the corresponding 64-bit mask */ -#define MLX5_BITSHIFT (v) (UINT64_C(1) << (v)) -/* Save and restore errno around argument evaluation. */ #define ERRNO_SAFE (x) ((errno = (int []){ errno, ((x), 0) }[0]))
Signature · 1 line
2.45.0
Quoted 9 lines
-----Original Message-----
From: Thomas Monjalon <[email protected]>
Sent: Friday, May 24, 2024 15:43
To: [email protected]
Cc: Dariusz Sosnowski <[email protected]>; Slava Ovsiienko <[email protected]>; Ori Kam <[email protected]>; Suanming Mou <[email protected]>; Matan Azrad <[email protected]>
Subject: [PATCH] net/mlx5: remove redundant macro
Quoted 4 lines
The macro
MLX5_BITSHIFT()is not used anymore, and is redundant withRTE_BIT64(), so it can be removed.Signed-off-by Thomas Monjalon <[email protected]>
Best regards,
Dariusz Sosnowski
Hi,
From: Thomas Monjalon <[email protected]>
Sent: Friday, May 24, 2024 4:42 PM
To: [email protected]
Cc: Dariusz Sosnowski; Slava Ovsiienko; Ori Kam; Suanming Mou; Matan Azrad
Subject: [PATCH] net/mlx5: remove redundant macro
The macro MLX5_BITSHIFT() is not used anymore,
and is redundant with RTE_BIT64(),
so it can be removed.
Patch applied to next-net-mlx,
Kindest regards,
Raslan Darawsheh