summaryrefslogtreecommitdiffstats
path: root/sys/dev
diff options
context:
space:
mode:
authortrasz <trasz@FreeBSD.org>2010-01-08 15:44:49 +0000
committertrasz <trasz@FreeBSD.org>2010-01-08 15:44:49 +0000
commit2cff5b762aae21fa44026635bf30126306b3e5e6 (patch)
tree2485229b6cf12010c53deea4e479915bbdbe4933 /sys/dev
parent6f35777c44e9870d9e0fa47019fd5d3e79f04f03 (diff)
downloadFreeBSD-src-2cff5b762aae21fa44026635bf30126306b3e5e6.zip
FreeBSD-src-2cff5b762aae21fa44026635bf30126306b3e5e6.tar.gz
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
to silence newer GCC versions.
Diffstat (limited to 'sys/dev')
-rw-r--r--sys/dev/ep/if_ep.c2
-rw-r--r--sys/dev/ex/if_ex.c2
2 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index a1bbb01..59dd1c4 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -815,7 +815,7 @@ read_again:
#endif
EP_FRST(sc, F_RX_FIRST);
status = CSR_READ_2(sc, EP_W1_RX_STATUS);
- if (!status & ERR_RX_INCOMPLETE) {
+ if (!(status & ERR_RX_INCOMPLETE)) {
/*
* We see if by now, the packet has completly
* arrived
diff --git a/sys/dev/ex/if_ex.c b/sys/dev/ex/if_ex.c
index 7a3d74f..d9e0c98 100644
--- a/sys/dev/ex/if_ex.c
+++ b/sys/dev/ex/if_ex.c
@@ -677,7 +677,7 @@ ex_tx_intr(struct ex_softc *sc)
while (sc->tx_head != sc->tx_tail) {
CSR_WRITE_2(sc, HOST_ADDR_REG, sc->tx_head);
- if (! CSR_READ_2(sc, IO_PORT_REG) & Done_bit)
+ if (!(CSR_READ_2(sc, IO_PORT_REG) & Done_bit))
break;
tx_status = CSR_READ_2(sc, IO_PORT_REG);
OpenPOWER on IntegriCloud