Date: Tue, 7 May 2013 07:44:08 +0000 (UTC) From: Adrian Chadd <adrian@FreeBSD.org> To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: svn commit: r250325 - head/sys/dev/ath Message-ID: <201305070744.r477i8nA091363@svn.freebsd.org>
next in thread | raw e-mail | index | archive | help
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); } }
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201305070744.r477i8nA091363>