aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/ep
diff options
context:
space:
mode:
authorWarner Losh <imp@FreeBSD.org>2009-09-08 16:37:18 +0000
committerWarner Losh <imp@FreeBSD.org>2009-09-08 16:37:18 +0000
commitd2111f569c3ff4dcf58f5df4f4de2e3e204e4c4e (patch)
treeeaca5e8e993be9250b2e3844bdff17ef1bae3f04 /sys/dev/ep
parent216e03861cb162cb91e13df05204d5aff0dbc13d (diff)
Notes
Diffstat (limited to 'sys/dev/ep')
-rw-r--r--sys/dev/ep/if_ep.c15
1 files changed, 7 insertions, 8 deletions
diff --git a/sys/dev/ep/if_ep.c b/sys/dev/ep/if_ep.c
index f5fd475f85ac..c5b516c783ea 100644
--- a/sys/dev/ep/if_ep.c
+++ b/sys/dev/ep/if_ep.c
@@ -665,14 +665,13 @@ rescan:
#ifdef EP_LOCAL_STATS
sc->tx_underrun++;
#endif
- } else {
- if (status & TXS_JABBER);
- else
- ++ifp->if_collisions;
- /* TXS_MAX_COLLISION
- * we shouldn't get
- * here
- */
+ }
+ if (status & TXS_MAX_COLLISION) {
+ /*
+ * TXS_MAX_COLLISION we
+ * shouldn't get here
+ */
+ ++ifp->if_collisions;
}
++ifp->if_oerrors;
CSR_WRITE_2(sc, EP_COMMAND, TX_ENABLE);