From: Felix Fietkau Date: Sun, 20 Jan 2013 17:51:59 +0000 (+0100) Subject: ath9k_hw: remove a useless WARN_ON X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=c5e818ef081c4144177fdbdeed154332cd7e4d7a;p=linux-beck.git ath9k_hw: remove a useless WARN_ON &ah->curchan->ani can never be NULL Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- diff --git a/drivers/net/wireless/ath/ath9k/ani.c b/drivers/net/wireless/ath/ath9k/ani.c index a9218a198758..7ecd40f07a74 100644 --- a/drivers/net/wireless/ath/ath9k/ani.c +++ b/drivers/net/wireless/ath/ath9k/ani.c @@ -419,9 +419,6 @@ void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan) return; aniState = &ah->curchan->ani; - if (WARN_ON(!aniState)) - return; - if (!ath9k_hw_ani_read_counters(ah)) return;