All of lore.kernel.org
 help / color / mirror / Atom feed
* [ath9k-devel] [RFC] ath9k: make npending frames check as bool
@ 2011-05-06 15:54 ` Mohammed Shafi Shajakhan
  0 siblings, 0 replies; 12+ messages in thread
From: Mohammed Shafi Shajakhan @ 2011-05-06 15:54 UTC (permalink / raw)
  To: ath9k-devel

From: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
---
 drivers/net/wireless/ath/ath9k/main.c |    7 +++++--
 1 files changed, 5 insertions(+), 2 deletions(-)

diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index 3de115d..2b78ea2 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -2267,7 +2267,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);
@@ -2276,7 +2276,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)
-- 
1.7.0.4

^ permalink raw reply related	[flat|nested] 12+ messages in thread

end of thread, other threads:[~2011-05-09  9:39 UTC | newest]

Thread overview: 12+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-05-06 15:54 [ath9k-devel] [RFC] ath9k: make npending frames check as bool Mohammed Shafi Shajakhan
2011-05-06 15:54 ` Mohammed Shafi Shajakhan
2011-05-06 16:15 ` [ath9k-devel] " Vasanthakumar Thiagarajan
2011-05-06 16:15   ` Vasanthakumar Thiagarajan
2011-05-09  4:30   ` [ath9k-devel] " Mohammed Shafi
2011-05-09  4:30     ` Mohammed Shafi
2011-05-09  9:28     ` [ath9k-devel] " Vasanthakumar Thiagarajan
2011-05-09  9:28       ` Vasanthakumar Thiagarajan
2011-05-09  9:39       ` [ath9k-devel] " Vasanthakumar Thiagarajan
2011-05-09  9:39         ` Vasanthakumar Thiagarajan
2011-05-09  9:39       ` [ath9k-devel] " Mohammed Shafi
2011-05-09  9:39         ` Mohammed Shafi

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.