diff options
author | phk <phk@FreeBSD.org> | 2002-10-16 09:14:59 +0000 |
---|---|---|
committer | phk <phk@FreeBSD.org> | 2002-10-16 09:14:59 +0000 |
commit | 32fb67c36b33ab6d14a82d469c776f287d96e9c0 (patch) | |
tree | ba4045bde297cdb63765059d6a40200ca20ee92f /sys/pci/if_sf.c | |
parent | 3f4eea0f283fbdb73c023326a77c63f051a63b93 (diff) | |
download | FreeBSD-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_sf.c')
-rw-r--r-- | sys/pci/if_sf.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/pci/if_sf.c b/sys/pci/if_sf.c index f5df991..69e7c1a 100644 --- a/sys/pci/if_sf.c +++ b/sys/pci/if_sf.c @@ -211,10 +211,10 @@ DRIVER_MODULE(if_sf, pci, sf_driver, sf_devclass, 0, 0); DRIVER_MODULE(miibus, sf, miibus_driver, miibus_devclass, 0, 0); #define SF_SETBIT(sc, reg, x) \ - csr_write_4(sc, reg, csr_read_4(sc, reg) | x) + csr_write_4(sc, reg, csr_read_4(sc, reg) | (x)) #define SF_CLRBIT(sc, reg, x) \ - csr_write_4(sc, reg, csr_read_4(sc, reg) & ~x) + csr_write_4(sc, reg, csr_read_4(sc, reg) & ~(x)) static u_int32_t csr_read_4(sc, reg) |