Skip to content

Commit 5b80345

Browse files
matttbeintel-lab-lkp
authored andcommitted
mptcp: use _BITUL() instead of (1 << x)
Simply to use the proper way to declare bits, and to align with all other flags declared in this file. No functional changes intended. Signed-off-by: Matthieu Baerts (NGI0) <[email protected]>
1 parent 7064ceb commit 5b80345

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

include/uapi/linux/mptcp.h

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -34,11 +34,11 @@
3434
#define MPTCP_PM_EV_FLAG_DENY_JOIN_ID0 _BITUL(0)
3535
#define MPTCP_PM_EV_FLAG_SERVER_SIDE _BITUL(1)
3636

37-
#define MPTCP_PM_ADDR_FLAG_SIGNAL (1 << 0)
38-
#define MPTCP_PM_ADDR_FLAG_SUBFLOW (1 << 1)
39-
#define MPTCP_PM_ADDR_FLAG_BACKUP (1 << 2)
40-
#define MPTCP_PM_ADDR_FLAG_FULLMESH (1 << 3)
41-
#define MPTCP_PM_ADDR_FLAG_IMPLICIT (1 << 4)
37+
#define MPTCP_PM_ADDR_FLAG_SIGNAL _BITUL(0)
38+
#define MPTCP_PM_ADDR_FLAG_SUBFLOW _BITUL(1)
39+
#define MPTCP_PM_ADDR_FLAG_BACKUP _BITUL(2)
40+
#define MPTCP_PM_ADDR_FLAG_FULLMESH _BITUL(3)
41+
#define MPTCP_PM_ADDR_FLAG_IMPLICIT _BITUL(4)
4242

4343
struct mptcp_info {
4444
__u8 mptcpi_subflows;

0 commit comments

Comments
 (0)