summaryrefslogtreecommitdiff
path: root/drivers/net/dsa/mt7530.h
diff options
context:
space:
mode:
authorDENG Qingfang <dqfext@gmail.com>2020-03-11 02:20:50 +0800
committerDavid S. Miller <davem@davemloft.net>2020-03-10 16:12:54 -0700
commit13e787ca82f86663ae83009161d5adae7d2ada29 (patch)
treed543023ec039176f8a2f575ac6aaa0fe15a1173a /drivers/net/dsa/mt7530.h
parent469b390e1ba330e888175e55d78573db2e9a8cb4 (diff)
net: dsa: mt7530: fix macro MIRROR_PORT
The inner pair of parentheses should be around the variable x Fixes: 37feab6076aa ("net: dsa: mt7530: add support for port mirroring") Signed-off-by: DENG Qingfang <dqfext@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/dsa/mt7530.h')
-rw-r--r--drivers/net/dsa/mt7530.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/dsa/mt7530.h b/drivers/net/dsa/mt7530.h
index 5e6c778feb23..b7cfb3d52b1c 100644
--- a/drivers/net/dsa/mt7530.h
+++ b/drivers/net/dsa/mt7530.h
@@ -37,7 +37,7 @@ enum {
#define CPU_PORT(x) ((x) << 4)
#define CPU_MASK (0xf << 4)
#define MIRROR_EN BIT(3)
-#define MIRROR_PORT(x) ((x & 0x7))
+#define MIRROR_PORT(x) ((x) & 0x7)
#define MIRROR_MASK 0x7
/* Registers for address table access */