summaryrefslogtreecommitdiffstats
path: root/sys/dev/ep
diff options
context:
space:
mode:
authormux <mux@FreeBSD.org>2003-06-26 17:02:52 +0000
committermux <mux@FreeBSD.org>2003-06-26 17:02:52 +0000
commit42e3f9b6ff9bd94b96bf4b93105dc84cab7c615c (patch)
tree043241eec70e9feb4dc6bcb785a003752bcde397 /sys/dev/ep
parenta153395cfd9722d85d75382808e97026dc7da092 (diff)
downloadFreeBSD-src-42e3f9b6ff9bd94b96bf4b93105dc84cab7c615c.zip
FreeBSD-src-42e3f9b6ff9bd94b96bf4b93105dc84cab7c615c.tar.gz
Other minor style nits I missed in ep_if_start() in my previous
commit.
Diffstat (limited to 'sys/dev/ep')
-rw-r--r--sys/dev/ep/if_ep.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index b8d44b6..1201e8b 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 @@ startagain:
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 @@ startagain:
*/
if (len + pad > ETHER_MAX_LEN) {
/* packet is obviously too large: toss it */
- ++ifp->if_oerrors;
+ ifp->if_oerrors++;
m_freem(m0);
goto readcheck;
}
OpenPOWER on IntegriCloud