diff options
author | Felix Fietkau <nbd@openwrt.org> | 2013-01-20 12:51:59 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-01-22 16:05:32 -0500 |
commit | c5e818ef081c4144177fdbdeed154332cd7e4d7a (patch) | |
tree | 12cf1abf3e63b1d4e783b5ec47abc2ad77392bb4 /drivers | |
parent | 9dbac67da314ccdab3bb7f429b4936e59d5389b7 (diff) |
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')
-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) | |||
419 | return; | 419 | return; |
420 | 420 | ||
421 | aniState = &ah->curchan->ani; | 421 | aniState = &ah->curchan->ani; |
422 | if (WARN_ON(!aniState)) | ||
423 | return; | ||
424 | |||
425 | if (!ath9k_hw_ani_read_counters(ah)) | 422 | if (!ath9k_hw_ani_read_counters(ah)) |
426 | return; | 423 | return; |
427 | 424 | ||