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);
                }
        }
 
_______________________________________________
svn-src-all@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-all
To unsubscribe, send any mail to "svn-src-all-unsubscr...@freebsd.org"

Reply via email to