ath9k_hw: remove a useless WARN_ON
authorFelix Fietkau <nbd@openwrt.org>
Sun, 20 Jan 2013 17:51:59 +0000 (18:51 +0100)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 22 Jan 2013 21:05:32 +0000 (16:05 -0500)
&ah->curchan->ani can never be NULL

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ani.c

index a9218a19875856eb5f82c91896fc639bf82750e0..7ecd40f07a7442d4769c6e0e60331f9824f3d217 100644 (file)
@@ -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;