Commit 13e787ca authored by DENG Qingfang's avatar DENG Qingfang Committed by David S. Miller

net: dsa: mt7530: fix macro MIRROR_PORT

The inner pair of parentheses should be around the variable x

Fixes: 37feab60 ("net: dsa: mt7530: add support for port mirroring")
Signed-off-by: default avatarDENG Qingfang <dqfext@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 469b390e
...@@ -37,7 +37,7 @@ enum { ...@@ -37,7 +37,7 @@ enum {
#define CPU_PORT(x) ((x) << 4) #define CPU_PORT(x) ((x) << 4)
#define CPU_MASK (0xf << 4) #define CPU_MASK (0xf << 4)
#define MIRROR_EN BIT(3) #define MIRROR_EN BIT(3)
#define MIRROR_PORT(x) ((x & 0x7)) #define MIRROR_PORT(x) ((x) & 0x7)
#define MIRROR_MASK 0x7 #define MIRROR_MASK 0x7
/* Registers for address table access */ /* Registers for address table access */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment