net: pci200syn: add necessary () to macro argument
authorPeng Li <lipeng321@huawei.com>
Tue, 15 Jun 2021 13:54:22 +0000 (21:54 +0800)
committerDavid S. Miller <davem@davemloft.net>
Tue, 15 Jun 2021 18:03:17 +0000 (11:03 -0700)
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>
drivers/net/wan/pci200syn.c

index ac4a599472478d1350833850e790e736130a00c8..abca13b2792a3a8f820dbca3cbf34a52e63403d2 100644 (file)
@@ -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)