ath9k: Fix pending frame check
authorSujith Manoharan <c_manoha@qca.qualcomm.com>
Thu, 2 Oct 2014 01:03:14 +0000 (06:33 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Thu, 2 Oct 2014 18:26:31 +0000 (14:26 -0400)
Checking for the queue depth outside of
the TX queue lock is incorrect and in this
case, is not required since it is done inside
ath9k_has_pending_frames().

Signed-off-by: Sujith Manoharan <c_manoha@qca.qualcomm.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/main.c

index 4466de0740f955dc41aca9a68e978de8561db366..0b24e62f620d4e450506ffbcabc1e86dea51ed4c 100644 (file)
@@ -1974,9 +1974,6 @@ static bool ath9k_has_tx_pending(struct ath_softc *sc)
                if (!ATH_TXQ_SETUP(sc, i))
                        continue;
 
-               if (!sc->tx.txq[i].axq_depth)
-                       continue;
-
                npend = ath9k_has_pending_frames(sc, &sc->tx.txq[i]);
                if (npend)
                        break;