summaryrefslogtreecommitdiffstats
path: root/drivers/net/wan
diff options
context:
space:
mode:
authorPeng Li <lipeng321@huawei.com>2021-06-15 21:54:22 +0800
committerDavid S. Miller <davem@davemloft.net>2021-06-15 11:03:17 -0700
commit8e7680c10284e75e0b4122e05a6969a53f95c1cb (patch)
tree70b3fbf58b322057a9bc8aba9a4b28aab2f45fb8 /drivers/net/wan
parent2b637446685f35b51b090fc3e5bc21e4fe8a21c1 (diff)
downloadlinux-8e7680c10284e75e0b4122e05a6969a53f95c1cb.tar.bz2
net: pci200syn: add necessary () to macro argument
Macro argument 'card' may be better as '(card)' to avoid precedence issues. Signed-off-by: Peng Li <lipeng321@huawei.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/net/wan')
-rw-r--r--drivers/net/wan/pci200syn.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wan/pci200syn.c b/drivers/net/wan/pci200syn.c
index ac4a59947247..abca13b2792a 100644
--- a/drivers/net/wan/pci200syn.c
+++ b/drivers/net/wan/pci200syn.c
@@ -86,7 +86,7 @@ typedef struct card_s {
port_t ports[2];
} card_t;
-#define get_port(card, port) (&card->ports[port])
+#define get_port(card, port) (&(card)->ports[port])
#define sca_flush(card) (sca_in(IER0, card))
static inline void new_memcpy_toio(char __iomem *dest, char *src, int length)