From owner-svn-src-all@FreeBSD.ORG Sat May 30 17:56:19 2009 Return-Path: Delivered-To: svn-src-all@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 778781065670; Sat, 30 May 2009 17:56:19 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 4F86F8FC19; Sat, 30 May 2009 17:56:19 +0000 (UTC) (envelope-from attilio@FreeBSD.org) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id n4UHuJHQ014763; Sat, 30 May 2009 17:56:19 GMT (envelope-from attilio@svn.freebsd.org) Received: (from attilio@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id n4UHuJhG014762; Sat, 30 May 2009 17:56:19 GMT (envelope-from attilio@svn.freebsd.org) Message-Id: <200905301756.n4UHuJhG014762@svn.freebsd.org> From: Attilio Rao Date: Sat, 30 May 2009 17:56:19 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r193103 - head/sys/dev/bge X-BeenThere: svn-src-all@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: "SVN commit messages for the entire src tree \(except for " user" and " projects" \)" List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sat, 30 May 2009 17:56:20 -0000 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))