Skip to contentSkip to conversation

net/mlx5: remove redundant macro

PATCH In review Thomas Monjalon 3 participants 3 messages May 24, 2024 – May 27, 2024 Network drivers

lore
Share & tools
lore
#0 lore raw

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
index d86a80947e..c44a9d88be 100644
@@ -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
Acked-by on v1 1/1
#1 lore raw
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 with RTE_BIT64(), so it can be removed.

Best regards,
Dariusz Sosnowski

#2 lore raw
In reply to Thomas Monjalon

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