svn commit: r250325 - head/sys/dev/ath
Adrian Chadd
adrian at FreeBSD.org
Tue May 7 07:44:08 UTC 2013
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);
}
}
More information about the svn-src-all
mailing list