Fix return values appropriately.

Tested by:	zec
This commit is contained in:
attilio 2009-05-30 17:56:19 +00:00
parent 52e9bd2d6b
commit 02893c6547

View File

@ -3196,7 +3196,7 @@ bge_rxeof(struct bge_softc *sc)
rx_npkts++;
if (!(ifp->if_drv_flags & IFF_DRV_RUNNING))
return;
return (rx_npkts);
}
if (stdcnt > 0)
@ -3309,7 +3309,7 @@ bge_poll(struct ifnet *ifp, enum poll_cmd cmd, int count)
rx_npkts = bge_rxeof(sc);
if (!(ifp->if_drv_flags & IFF_DRV_RUNNING)) {
BGE_UNLOCK(sc);
return;
return (rx_npkts);
}
bge_txeof(sc);
if (!IFQ_DRV_IS_EMPTY(&ifp->if_snd))