Skip to content

Commit 8e7680c

Browse files
321lipengdavem330
authored andcommitted
net: pci200syn: add necessary () to macro argument
Macro argument 'card' may be better as '(card)' to avoid precedence issues. Signed-off-by: Peng Li <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 2b63744 commit 8e7680c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/net/wan/pci200syn.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ typedef struct card_s {
8686
port_t ports[2];
8787
} card_t;
8888

89-
#define get_port(card, port) (&card->ports[port])
89+
#define get_port(card, port) (&(card)->ports[port])
9090
#define sca_flush(card) (sca_in(IER0, card))
9191

9292
static inline void new_memcpy_toio(char __iomem *dest, char *src, int length)

0 commit comments

Comments
 (0)