From e542f156ccbe920f67ad94c908252c769be47998 Mon Sep 17 00:00:00 2001 From: Maxime Henrion Date: Thu, 26 Jun 2003 17:02:52 +0000 Subject: [PATCH] Other minor style nits I missed in ep_if_start() in my previous commit. --- sys/dev/ep/if_ep.c | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c index b8d44b6c444e..1201e8b590b7 100644 --- a/sys/dev/ep/if_ep.c +++ b/sys/dev/ep/if_ep.c @@ -480,11 +480,12 @@ static void ep_if_start(ifp) struct ifnet *ifp; { - struct ep_softc *sc = ifp->if_softc; + struct ep_softc *sc; u_int len; struct mbuf *m, *m0; int s, pad; + sc = ifp->if_softc; if (sc->gone) return; @@ -497,7 +498,7 @@ ep_if_start(ifp) IF_DEQUEUE(&ifp->if_snd, m0); if (m0 == NULL) return; - for (len = 0, m = m0; m; m = m->m_next) + for (len = 0, m = m0; m != NULL; m = m->m_next) len += m->m_len; pad = (4 - len) & 3; @@ -509,7 +510,7 @@ ep_if_start(ifp) */ if (len + pad > ETHER_MAX_LEN) { /* packet is obviously too large: toss it */ - ++ifp->if_oerrors; + ifp->if_oerrors++; m_freem(m0); goto readcheck; }