Skip to content

Commit 296e7df

Browse files
Philipp Hortmanngregkh
authored andcommitted
staging: rtl8192e: Use BIT() instead of << for bit field MSR_LINK_MASK
Use commonly used BIT() macro to define MSR_LINK_MASK. Equation is not accepted by checkpatch because of missing spaces. Therefore line needs to change anyhow. Signed-off-by: Philipp Hortmann <[email protected]> Link: https://lore.kernel.org/r/20230208185645.GA14681@matrix-ESPRIMO-P710 Signed-off-by: Greg Kroah-Hartman <[email protected]>
1 parent 5cd73e7 commit 296e7df

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/staging/rtl8192e/rtl8192e/r8192E_hw.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -170,7 +170,7 @@ enum _RTL8192PCI_HW {
170170
#define BW_OPMODE_20MHZ BIT2
171171
IC_VERRSION = 0x301,
172172
MSR = 0x303,
173-
#define MSR_LINK_MASK ((1<<0)|(1<<1))
173+
#define MSR_LINK_MASK (BIT(1) | BIT(0))
174174
#define MSR_LINK_MANAGED 2
175175
#define MSR_LINK_ADHOC 1
176176
#define MSR_LINK_MASTER 3

0 commit comments

Comments
 (0)