Skip to content

Commit 13e787c

Browse files
LGA1150davem330
authored andcommitted
net: dsa: mt7530: fix macro MIRROR_PORT
The inner pair of parentheses should be around the variable x Fixes: 37feab6 ("net: dsa: mt7530: add support for port mirroring") Signed-off-by: DENG Qingfang <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 469b390 commit 13e787c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/dsa/mt7530.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ enum {
3737
#define CPU_PORT(x) ((x) << 4)
3838
#define CPU_MASK (0xf << 4)
3939
#define MIRROR_EN BIT(3)
40-
#define MIRROR_PORT(x) ((x & 0x7))
40+
#define MIRROR_PORT(x) ((x) & 0x7)
4141
#define MIRROR_MASK 0x7
4242

4343
/* Registers for address table access */

0 commit comments

Comments
 (0)