diff options
author | Vivek Natarajan <vnatarajan@atheros.com> | 2011-02-25 17:31:03 +0530 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-02-25 15:33:40 -0500 |
commit | 08f6c85223b71ba7bf2a5ebbdf735881475a8e3c (patch) | |
tree | 2bc99e75ce2ac66a5feb3f8b381608ee12c90b8a /drivers/net/wireless/ath/ath9k/main.c | |
parent | 7e3514fdc0f2c1c007f46f0ca584808edbfaee8f (diff) | |
download | kernel_samsung_tuna-08f6c85223b71ba7bf2a5ebbdf735881475a8e3c.zip kernel_samsung_tuna-08f6c85223b71ba7bf2a5ebbdf735881475a8e3c.tar.gz kernel_samsung_tuna-08f6c85223b71ba7bf2a5ebbdf735881475a8e3c.tar.bz2 |
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/ath9k/main.c')
-rw-r--r-- | drivers/net/wireless/ath/ath9k/main.c | 2 |
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 b849669..97830c7 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; |