Skip to content

Commit

Permalink
net: pci200syn: add necessary () to macro argument
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Peng Li authored and David S. Miller committed Jun 15, 2021
1 parent 2b63744 commit 8e7680c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wan/pci200syn.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 8e7680c

Please sign in to comment.