summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorVivek Natarajan <vnatarajan@atheros.com>2011-02-25 17:31:03 +0530
committerJohn W. Linville <linville@tuxdriver.com>2011-02-25 15:33:40 -0500
commit08f6c85223b71ba7bf2a5ebbdf735881475a8e3c (patch)
tree2bc99e75ce2ac66a5feb3f8b381608ee12c90b8a /drivers/net/wireless/ath
parent7e3514fdc0f2c1c007f46f0ca584808edbfaee8f (diff)
downloadlinux-next-08f6c85223b71ba7bf2a5ebbdf735881475a8e3c.tar.gz
ath9k: Fix compilation warning.
Initialize txq to avoid this warning: drivers/net/wireless/ath/ath9k/main.c: In function ‘ath9k_flush’: drivers/net/wireless/ath/ath9k/main.c:2138: warning: ‘txq’ may be used uninitialized in this function Signed-off-by: Vivek Natarajan <vnatarajan@atheros.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath9k/main.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c
index b8496696460e..97830c7f62c9 100644
--- a/drivers/net/wireless/ath/ath9k/main.c
+++ b/drivers/net/wireless/ath/ath9k/main.c
@@ -2133,7 +2133,7 @@ static void ath9k_flush(struct ieee80211_hw *hw, bool drop)
{
#define ATH_FLUSH_TIMEOUT 60 /* ms */
struct ath_softc *sc = hw->priv;
- struct ath_txq *txq;
+ struct ath_txq *txq = NULL;
struct ath_hw *ah = sc->sc_ah;
struct ath_common *common = ath9k_hw_common(ah);
int i, j, npend = 0;