diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-20 18:51:59 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-22 22:05:32 +0100 |
commit | c5e818ef081c4144177fdbdeed154332cd7e4d7a (patch) | |
tree | 12cf1abf3e63b1d4e783b5ec47abc2ad77392bb4 | |
parent | ath9k_hw: reduce struct ar5416AniState size (diff) | |
download | linux-c5e818ef081c4144177fdbdeed154332cd7e4d7a.tar.xz linux-c5e818ef081c4144177fdbdeed154332cd7e4d7a.zip |
ath9k_hw: remove a useless WARN_ON
&ah->curchan->ani can never be NULL
Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
-rw-r--r-- | drivers/net/wireless/ath/ath9k/ani.c | 3 |
1 files changed, 0 insertions, 3 deletions
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; |