Commit acc3edf0 authored by Peng Li's avatar Peng Li Committed by David S. Miller

net: cosa: add necessary () to macro argument

Macro argument 'cosa' may be better as '(cosa)' to avoid
precedence issues.
Signed-off-by: default avatarPeng Li <lipeng321@huawei.com>
Signed-off-by: default avatarGuangbin Huang <huangguangbin2@huawei.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 70d063b9
...@@ -238,14 +238,14 @@ MODULE_LICENSE("GPL"); ...@@ -238,14 +238,14 @@ MODULE_LICENSE("GPL");
#define cosa_inw inw #define cosa_inw inw
#endif #endif
#define is_8bit(cosa) (!(cosa->datareg & 0x08)) #define is_8bit(cosa) (!((cosa)->datareg & 0x08))
#define cosa_getstatus(cosa) (cosa_inb(cosa->statusreg)) #define cosa_getstatus(cosa) (cosa_inb((cosa)->statusreg))
#define cosa_putstatus(cosa, stat) (cosa_outb(stat, cosa->statusreg)) #define cosa_putstatus(cosa, stat) (cosa_outb(stat, (cosa)->statusreg))
#define cosa_getdata16(cosa) (cosa_inw(cosa->datareg)) #define cosa_getdata16(cosa) (cosa_inw((cosa)->datareg))
#define cosa_getdata8(cosa) (cosa_inb(cosa->datareg)) #define cosa_getdata8(cosa) (cosa_inb((cosa)->datareg))
#define cosa_putdata16(cosa, dt) (cosa_outw(dt, cosa->datareg)) #define cosa_putdata16(cosa, dt) (cosa_outw(dt, (cosa)->datareg))
#define cosa_putdata8(cosa, dt) (cosa_outb(dt, cosa->datareg)) #define cosa_putdata8(cosa, dt) (cosa_outb(dt, (cosa)->datareg))
/* Initialization stuff */ /* Initialization stuff */
static int cosa_probe(int ioaddr, int irq, int dma); static int cosa_probe(int ioaddr, int irq, int dma);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment