ath9k: optimize ath_drain_all_txq
[pandora-kernel.git] / drivers / net / wireless / ath / ath9k / xmit.c
index 95f6c5a..24846d9 100644 (file)
@@ -1786,6 +1786,9 @@ bool ath_drain_all_txq(struct ath_softc *sc)
                if (!ATH_TXQ_SETUP(sc, i))
                        continue;
 
+               if (!sc->tx.txq[i].axq_depth)
+                       continue;
+
                if (ath9k_hw_numtxpending(ah, sc->tx.txq[i].axq_qnum))
                        npend |= BIT(i);
        }