From 533541c47bc98b118c55a2c646188e129abde3b8 Mon Sep 17 00:00:00 2001 From: alfred Date: Sat, 9 Nov 2002 12:55:07 +0000 Subject: Fix instances of macros with improperly parenthasized arguments. Verified by: md5 --- sys/dev/my/if_my.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sys/dev/my') diff --git a/sys/dev/my/if_my.c b/sys/dev/my/if_my.c index 6fedd54..5f10be7 100644 --- a/sys/dev/my/if_my.c +++ b/sys/dev/my/if_my.c @@ -148,8 +148,8 @@ static int my_list_rx_init(struct my_softc *); static int my_list_tx_init(struct my_softc *); static long my_send_cmd_to_phy(struct my_softc *, int, int); -#define MY_SETBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | x) -#define MY_CLRBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~x) +#define MY_SETBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) | (x)) +#define MY_CLRBIT(sc, reg, x) CSR_WRITE_4(sc, reg, CSR_READ_4(sc, reg) & ~(x)) static device_method_t my_methods[] = { /* Device interface */ -- cgit v1.1