Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 247673
b: refs/heads/master
c: 108697c
h: refs/heads/master
i:
  247671: 2275ddd
v: v3
  • Loading branch information
Mohammed Shafi Shajakhan authored and John W. Linville committed May 16, 2011
1 parent 1feb121 commit 37554e3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 21e8ee6d207f6d384689571101436eb9070c22ca
refs/heads/master: 108697c44b8e50bea3505c6bf9667da4627cb2d5
7 changes: 5 additions & 2 deletions trunk/drivers/net/wireless/ath/ath9k/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -2276,7 +2276,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
timeout = 1;

for (j = 0; j < timeout; j++) {
int npend = 0;
bool npend = false;

if (j)
usleep_range(1000, 2000);
Expand All @@ -2285,7 +2285,10 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
if (!ATH_TXQ_SETUP(sc, i))
continue;

npend += ath9k_has_pending_frames(sc, &sc->tx.txq[i]);
npend = ath9k_has_pending_frames(sc, &sc->tx.txq[i]);

if (npend)
break;
}

if (!npend)
Expand Down

0 comments on commit 37554e3

Please sign in to comment.