diff options
author | Geert Uytterhoeven <geert@linux-m68k.org> | 2014-01-26 05:53:21 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2014-02-12 15:31:49 -0500 |
commit | f783807308d1178683e583ccf268816bb05f41b2 (patch) | |
tree | a7c223316f2620186a4c89eb2f17072bc37a9364 /drivers/net/wireless/ath/ath9k | |
parent | 6f7343d4c4682b52943993decc8678084a35514d (diff) |
ath9k: Fix uninitialized variable in ath9k_has_tx_pending()
drivers/net/wireless/ath/ath9k/main.c: In function ‘ath9k_has_tx_pending’:
drivers/net/wireless/ath/ath9k/main.c:1869: warning: ‘npend’ may be used uninitialized in this function
Introduced by commit 10e2318103f5941aa70c318afe34bc41f1b98529 ("ath9k:
optimize ath9k_flush").
Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Acked-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k')
-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 317fcb99cfba..4486e3763919 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c | |||
@@ -1863,7 +1863,7 @@ static void ath9k_set_coverage_class(struct ieee80211_hw *hw, u8 coverage_class) | |||
1863 | 1863 | ||
1864 | static bool ath9k_has_tx_pending(struct ath_softc *sc) | 1864 | static bool ath9k_has_tx_pending(struct ath_softc *sc) |
1865 | { | 1865 | { |
1866 | int i, npend; | 1866 | int i, npend = 0; |
1867 | 1867 | ||
1868 | for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) { | 1868 | for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) { |
1869 | if (!ATH_TXQ_SETUP(sc, i)) | 1869 | if (!ATH_TXQ_SETUP(sc, i)) |