ath9k: Fix compilation warning.
authorVivek Natarajan <vnatarajan@atheros.com>
Fri, 25 Feb 2011 12:01:03 +0000 (17:31 +0530)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 25 Feb 2011 20:33:40 +0000 (15:33 -0500)
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>
drivers/net/wireless/ath/ath9k/main.c

index b8496696460e11109566554369bbac50a768df25..97830c7f62c9e4144a88a87928cb3cdc67d83b7a 100644 (file)
@@ -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;