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 16:05:32 -0500 |
commit | c5e818ef081c4144177fdbdeed154332cd7e4d7a (patch) | |
tree | 12cf1abf3e63b1d4e783b5ec47abc2ad77392bb4 /drivers/net/wireless/ath/ath9k/ani.c | |
parent | 9dbac67da314ccdab3bb7f429b4936e59d5389b7 (diff) | |
download | kernel_goldelico_gta04-c5e818ef081c4144177fdbdeed154332cd7e4d7a.zip kernel_goldelico_gta04-c5e818ef081c4144177fdbdeed154332cd7e4d7a.tar.gz kernel_goldelico_gta04-c5e818ef081c4144177fdbdeed154332cd7e4d7a.tar.bz2 |
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>
Diffstat (limited to 'drivers/net/wireless/ath/ath9k/ani.c')
-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 a9218a1..7ecd40f 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; |