Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order

to silence newer GCC versions.
This commit is contained in:
Edward Tomasz Napierala 2010-01-08 15:44:49 +00:00
parent 73330dab12
commit 3745cc73d0
4 changed files with 5 additions and 5 deletions

View File

@ -136,7 +136,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
if (TD_ON_LOCK(td))
lflag++;
if (TD_IS_SLEEPING(td)) {
if (!td->td_flags & TDF_SINTR)
if (!(td->td_flags & TDF_SINTR))
dflag++;
else
sflag++;
@ -171,7 +171,7 @@ db_ps(db_expr_t addr, boolean_t hasaddr, db_expr_t count, char *modif)
state[1] = '\0';
/* Additional process state flags. */
if (!p->p_flag & P_INMEM)
if (!(p->p_flag & P_INMEM))
strlcat(state, "W", sizeof(state));
if (p->p_flag & P_TRACED)
strlcat(state, "X", sizeof(state));

View File

@ -815,7 +815,7 @@ epread(struct ep_softc *sc)
#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

View File

@ -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);

View File

@ -1406,7 +1406,7 @@ ip6_savecontrol(struct inpcb *in6p, struct mbuf *m, struct mbuf **mp)
mp = &(*mp)->m_next;
break;
case IPPROTO_ROUTING:
if (!in6p->inp_flags & IN6P_RTHDR)
if (!(in6p->inp_flags & IN6P_RTHDR))
break;
*mp = sbcreatecontrol((caddr_t)ip6e, elen,