Skip to content

Commit

Permalink
net: lantiq_etop: avoid precedence issues
Browse files Browse the repository at this point in the history
Add () around macro argument to avoid precedence issues

Signed-off-by: Aleksander Jan Bajkowski <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
  • Loading branch information
abajk authored and davem330 committed Dec 30, 2021
1 parent 7b1cd6a commit b1cb12a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions drivers/net/ethernet/lantiq_etop.c
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,8 @@
/* use 2 static channels for TX/RX */
#define LTQ_ETOP_TX_CHANNEL 1
#define LTQ_ETOP_RX_CHANNEL 6
#define IS_TX(x) (x == LTQ_ETOP_TX_CHANNEL)
#define IS_RX(x) (x == LTQ_ETOP_RX_CHANNEL)
#define IS_TX(x) ((x) == LTQ_ETOP_TX_CHANNEL)
#define IS_RX(x) ((x) == LTQ_ETOP_RX_CHANNEL)

#define ltq_etop_r32(x) ltq_r32(ltq_etop_membase + (x))
#define ltq_etop_w32(x, y) ltq_w32(x, ltq_etop_membase + (y))
Expand Down

0 comments on commit b1cb12a

Please sign in to comment.