From owner-svn-src-head@FreeBSD.ORG Tue May 7 07:44:08 2013 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.FreeBSD.org [8.8.178.115]) by hub.freebsd.org (Postfix) with ESMTP id 459E4479; Tue, 7 May 2013 07:44:08 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:1900:2254:2068::e6a:0]) by mx1.freebsd.org (Postfix) with ESMTP id 39607641; Tue, 7 May 2013 07:44:08 +0000 (UTC) Received: from svn.freebsd.org ([127.0.1.70]) by svn.freebsd.org (8.14.6/8.14.6) with ESMTP id r477i82V091364; Tue, 7 May 2013 07:44:08 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.6/8.14.5/Submit) id r477i8nA091363; Tue, 7 May 2013 07:44:08 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201305070744.r477i8nA091363@svn.freebsd.org> From: Adrian Chadd Date: Tue, 7 May 2013 07:44:08 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250325 - head/sys/dev/ath X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.14 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 07 May 2013 07:44:08 -0000 Author: adrian Date: Tue May 7 07:44:07 2013 New Revision: 250325 URL: http://svnweb.freebsd.org/changeset/base/250325 Log: Simplify this bit of code! Modified: head/sys/dev/ath/if_ath_tx.c Modified: head/sys/dev/ath/if_ath_tx.c ============================================================================== --- head/sys/dev/ath/if_ath_tx.c Tue May 7 06:42:07 2013 (r250324) +++ head/sys/dev/ath/if_ath_tx.c Tue May 7 07:44:07 2013 (r250325) @@ -1821,11 +1821,8 @@ ath_tx_start(struct ath_softc *sc, struc if (sc->sc_cabq->axq_depth + sc->sc_cabq->fifo.axq_depth > sc->sc_txq_mcastq_maxdepth) { sc->sc_stats.ast_tx_mcastq_overflow++; - r = ENOBUFS; - } - if (r != 0) { m_freem(m0); - return r; + return (ENOBUFS); } }