mirror of
https://github.com/freebsd/freebsd-src.git
synced 2024-11-28 09:02:44 +00:00
Replace several instances of 'if (!a & b)' with 'if (!(a &b))' in order
to silence newer GCC versions.
This commit is contained in:
parent
73330dab12
commit
3745cc73d0
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=201794
@ -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));
|
||||
|
@ -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
|
||||
|
@ -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);
|
||||
|
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user