OSDN Git Service
(root)
/
tomoyo
/
tomoyo-test1.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
469b390
)
net: dsa: mt7530: fix macro MIRROR_PORT
author
DENG Qingfang
<dqfext@gmail.com>
Tue, 10 Mar 2020 18:20:50 +0000
(
02:20
+0800)
committer
David S. Miller
<davem@davemloft.net>
Tue, 10 Mar 2020 23:12:54 +0000
(16:12 -0700)
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>
drivers/net/dsa/mt7530.h
patch
|
blob
|
history
diff --git
a/drivers/net/dsa/mt7530.h
b/drivers/net/dsa/mt7530.h
index
5e6c778
..
b7cfb3d
100644
(file)
--- 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 */