projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6f7343d
)
ath9k: Fix uninitialized variable in ath9k_has_tx_pending()
author
Geert Uytterhoeven
<
[email protected]
>
Sun, 26 Jan 2014 10:53:21 +0000
(11:53 +0100)
committer
John W. Linville
<
[email protected]
>
Wed, 12 Feb 2014 20:31:49 +0000
(15:31 -0500)
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 <
[email protected]
>
Acked-by: Felix Fietkau <
[email protected]
>
Signed-off-by: John W. Linville <
[email protected]
>
drivers/net/wireless/ath/ath9k/main.c
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath9k/main.c
b/drivers/net/wireless/ath/ath9k/main.c
index 317fcb99cfba82013a748382199e2f4d02a8dace..4486e37639196ee5834b96fecd7a248b434d481e 100644
(file)
--- 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)
static bool ath9k_has_tx_pending(struct ath_softc *sc)
{
- int i, npend;
+ int i, npend
= 0
;
for (i = 0; i < ATH9K_NUM_TX_QUEUES; i++) {
if (!ATH_TXQ_SETUP(sc, i))