Skip to content

Commit

Permalink
ath9k: Fix pending frame check
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Sujith Manoharan authored and John W. Linville committed Oct 2, 2014
1 parent b736728 commit fc1314c
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit fc1314c

Please sign in to comment.