Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 30 May 2009 17:56:19 +0000 (UTC)
From:      Attilio Rao <attilio@FreeBSD.org>
To:        src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org
Subject:   svn commit: r193103 - head/sys/dev/bge
Message-ID:  <200905301756.n4UHuJhG014762@svn.freebsd.org>

next in thread | raw e-mail | index | archive | help
Author: attilio
Date: Sat May 30 17:56:19 2009
New Revision: 193103
URL: http://svn.freebsd.org/changeset/base/193103

Log:
  Fix return values appropriately.
  
  Tested by:	zec

Modified:
  head/sys/dev/bge/if_bge.c

Modified: head/sys/dev/bge/if_bge.c
==============================================================================
--- head/sys/dev/bge/if_bge.c	Sat May 30 17:39:50 2009	(r193102)
+++ head/sys/dev/bge/if_bge.c	Sat May 30 17:56:19 2009	(r193103)
@@ -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_cm
 	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))



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200905301756.n4UHuJhG014762>