mirror of
https://github.com/opnsense/src.git
synced 2026-04-29 01:59:38 -04:00
Cleanup tortured logic a big. Noticed by FlexLint, per phk.
# My reading of the docs suggests this can only happen on 10Base5 and # 10Base2 setups (and maybe only the former), which I can't test # adequately since I have nothing but 10BaseT, etc here.
This commit is contained in:
parent
216e03861c
commit
d2111f569c
1 changed files with 7 additions and 8 deletions
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue