diff options
author | attilio <attilio@FreeBSD.org> | 2009-05-30 17:56:19 +0000 |
---|---|---|
committer | attilio <attilio@FreeBSD.org> | 2009-05-30 17:56:19 +0000 |
commit | 02893c65476d3857b2c428892050db561634d94f (patch) | |
tree | dfd684f7526c6b0d186def63946ed3e0e10f3fdc /sys/dev/bge | |
parent | 52e9bd2d6b5b267e82925e3745a447717c67b646 (diff) | |
download | FreeBSD-src-02893c65476d3857b2c428892050db561634d94f.zip FreeBSD-src-02893c65476d3857b2c428892050db561634d94f.tar.gz |
Fix return values appropriately.
Tested by: zec
Diffstat (limited to 'sys/dev/bge')
-rw-r--r-- | sys/dev/bge/if_bge.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sys/dev/bge/if_bge.c b/sys/dev/bge/if_bge.c index a784e15..87c05a3 100644 --- a/sys/dev/bge/if_bge.c +++ b/sys/dev/bge/if_bge.c @@ -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)) |