summaryrefslogtreecommitdiffstats
path: root/sys/pci/if_rl.c
diff options
context:
space:
mode:
authorphk <phk@FreeBSD.org>2002-10-16 09:14:59 +0000
committerphk <phk@FreeBSD.org>2002-10-16 09:14:59 +0000
commit32fb67c36b33ab6d14a82d469c776f287d96e9c0 (patch)
treeba4045bde297cdb63765059d6a40200ca20ee92f /sys/pci/if_rl.c
parent3f4eea0f283fbdb73c023326a77c63f051a63b93 (diff)
downloadFreeBSD-src-32fb67c36b33ab6d14a82d469c776f287d96e9c0.zip
FreeBSD-src-32fb67c36b33ab6d14a82d469c776f287d96e9c0.tar.gz
Be consistent about functions being static.
Properly put macro args in (). Spotted by: FlexeLint.
Diffstat (limited to 'sys/pci/if_rl.c')
-rw-r--r--sys/pci/if_rl.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_rl.c b/sys/pci/if_rl.c
index 152aa3b..737aaea 100644
--- a/sys/pci/if_rl.c
+++ b/sys/pci/if_rl.c
@@ -387,11 +387,11 @@ rl_read_eeprom(sc, dest, off, cnt, swap)
*/
#define MII_SET(x) \
CSR_WRITE_1(sc, RL_MII, \
- CSR_READ_1(sc, RL_MII) | x)
+ CSR_READ_1(sc, RL_MII) | (x))
#define MII_CLR(x) \
CSR_WRITE_1(sc, RL_MII, \
- CSR_READ_1(sc, RL_MII) & ~x)
+ CSR_READ_1(sc, RL_MII) & ~(x))
/*
* Sync the PHYs by setting data bit and strobing the clock 32 times.
OpenPOWER on IntegriCloud