From: Sujith Manoharan Date: Sat, 28 Dec 2013 04:17:15 +0000 (+0530) Subject: ath9k: Fix interrupt statistics X-Git-Tag: next-20140106~59^2~21 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=78c8a950f8658ea8c3aeffb86ba8e24c910103c1;p=karo-tx-linux.git ath9k: Fix interrupt statistics Initialize "sync_cause" to zero since commit "ath9k: move ath9k_debug_sync_cause out of ath9k_hw" fills it conditionally based on ISR status. Not doing this results in garbage values in debugfs. Cc: Felix Fietkau Signed-off-by: Sujith Manoharan Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/main.c b/drivers/net/wireless/ath/ath9k/main.c index 5aaf0f93ea11..077f9fb3b8cb 100644 --- a/drivers/net/wireless/ath/ath9k/main.c +++ b/drivers/net/wireless/ath/ath9k/main.c @@ -544,7 +544,7 @@ irqreturn_t ath_isr(int irq, void *dev) struct ath_hw *ah = sc->sc_ah; struct ath_common *common = ath9k_hw_common(ah); enum ath9k_int status; - u32 sync_cause; + u32 sync_cause = 0; bool sched = false; /*