diff options
author | Sujith Manoharan <c_manoha@qca.qualcomm.com> | 2014-10-01 21:03:14 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-10-02 14:26:31 -0400 |
commit | fc1314c75e0558c03cb434e2af2c257caa201e76 (patch) | |
tree | 0042d039533723845ea6f33775df77d1126959ba /drivers/net/wireless | |
parent | b736728575af03488388e84fceac7bf0eac5dbb6 (diff) |
ath9k: Fix pending frame check
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>
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 4466de0740f9..0b24e62f620d 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1974,9 +1974,6 @@ static bool ath9k_has_tx_pending(struct ath_softc *sc) | |||
1974 | if (!ATH_TXQ_SETUP(sc, i)) | 1974 | if (!ATH_TXQ_SETUP(sc, i)) |
1975 | continue; | 1975 | continue; |
1976 | 1976 | ||
1977 | if (!sc->tx.txq[i].axq_depth) | ||
1978 | continue; | ||
1979 | |||
1980 | npend = ath9k_has_pending_frames(sc, &sc->tx.txq[i]); | 1977 | npend = ath9k_has_pending_frames(sc, &sc->tx.txq[i]); |
1981 | if (npend) | 1978 | if (npend) |
1982 | break; | 1979 | break; |