Fix mis-indentation.
Spotted by: FlexeLint
This commit is contained in:
parent
eb28a1f905
commit
76d8452fbf
@ -317,7 +317,7 @@ alloc_mbuf_cluster(struct lnc_softc *sc, struct host_ring_entry *desc)
|
||||
MGET(m, M_DONTWAIT, MT_DATA);
|
||||
if (!m)
|
||||
return(1);
|
||||
MCLGET(m, M_DONTWAIT);
|
||||
MCLGET(m, M_DONTWAIT);
|
||||
if (!m->m_ext.ext_buf) {
|
||||
m_free(m);
|
||||
return(1);
|
||||
@ -680,12 +680,12 @@ lnc_tint(struct lnc_softc *sc)
|
||||
next = sc->trans_ring + sc->trans_next;
|
||||
|
||||
#ifdef DIAGNOSTIC
|
||||
if (!(next->md->md1 & STP)) {
|
||||
int unit = sc->arpcom.ac_if.if_unit;
|
||||
log(LOG_ERR, "lnc%d: Transmit interrupt but not start of packet -- Resetting\n", unit);
|
||||
lnc_reset(sc);
|
||||
return;
|
||||
}
|
||||
if (!(next->md->md1 & STP)) {
|
||||
int unit = sc->arpcom.ac_if.if_unit;
|
||||
log(LOG_ERR, "lnc%d: Transmit interrupt but not start of packet -- Resetting\n", unit);
|
||||
lnc_reset(sc);
|
||||
return;
|
||||
}
|
||||
#endif
|
||||
|
||||
/*
|
||||
|
@ -404,11 +404,11 @@ vxstart(ifp)
|
||||
return;
|
||||
}
|
||||
/* We need to use m->m_pkthdr.len, so require the header */
|
||||
if ((m->m_flags & M_PKTHDR) == 0)
|
||||
if ((m->m_flags & M_PKTHDR) == 0)
|
||||
panic("vxstart: no header mbuf");
|
||||
len = m->m_pkthdr.len;
|
||||
len = m->m_pkthdr.len;
|
||||
|
||||
pad = (4 - len) & 3;
|
||||
pad = (4 - len) & 3;
|
||||
|
||||
/*
|
||||
* The 3c509 automatically pads short packets to minimum ethernet length,
|
||||
|
@ -1579,7 +1579,7 @@ tdsignal(struct thread *td, int sig, sig_t action)
|
||||
if (TD_IS_RUNNING(td) && td != curthread) {
|
||||
forward_signal(td);
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif
|
||||
}
|
||||
|
||||
|
@ -291,7 +291,7 @@ again: c = *fmt++;
|
||||
inp += n;
|
||||
if (sum == 0)
|
||||
goto input_failure;
|
||||
break;
|
||||
break;
|
||||
} else {
|
||||
sum += width;
|
||||
inr -= width;
|
||||
|
@ -2318,8 +2318,8 @@ setutimes(td, vp, ts, numtimes, nullflag)
|
||||
#ifdef MAC
|
||||
error = mac_check_vnode_setutimes(td->td_ucred, vp, vattr.va_atime,
|
||||
vattr.va_mtime);
|
||||
if (error == 0)
|
||||
#endif
|
||||
if (error == 0)
|
||||
error = VOP_SETATTR(vp, &vattr, td->td_ucred, td);
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
vn_finished_write(mp);
|
||||
|
@ -2318,8 +2318,8 @@ setutimes(td, vp, ts, numtimes, nullflag)
|
||||
#ifdef MAC
|
||||
error = mac_check_vnode_setutimes(td->td_ucred, vp, vattr.va_atime,
|
||||
vattr.va_mtime);
|
||||
if (error == 0)
|
||||
#endif
|
||||
if (error == 0)
|
||||
error = VOP_SETATTR(vp, &vattr, td->td_ucred, td);
|
||||
VOP_UNLOCK(vp, 0, td);
|
||||
vn_finished_write(mp);
|
||||
|
Loading…
Reference in New Issue
Block a user