aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net
diff options
context:
space:
mode:
authorVivek Natarajan <vnatarajan@atheros.com>2011-02-25 07:01:03 -0500
committerJohn W. Linville <linville@tuxdriver.com>2011-02-25 15:33:40 -0500
commit08f6c85223b71ba7bf2a5ebbdf735881475a8e3c (patch)
tree2bc99e75ce2ac66a5feb3f8b381608ee12c90b8a /drivers/net
parent7e3514fdc0f2c1c007f46f0ca584808edbfaee8f (diff)
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')
-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)
2133{ 2133{
2134#define ATH_FLUSH_TIMEOUT 60 /* ms */ 2134#define ATH_FLUSH_TIMEOUT 60 /* ms */
2135 struct ath_softc *sc = hw->priv; 2135 struct ath_softc *sc = hw->priv;
2136 struct ath_txq *txq; 2136 struct ath_txq *txq = NULL;
2137 struct ath_hw *ah = sc->sc_ah; 2137 struct ath_hw *ah = sc->sc_ah;
2138 struct ath_common *common = ath9k_hw_common(ah); 2138 struct ath_common *common = ath9k_hw_common(ah);
2139 int i, j, npend = 0; 2139 int i, j, npend = 0;