Skip to content

Commit

Permalink
ath9k_hw: remove a useless WARN_ON
Browse files Browse the repository at this point in the history
&ah->curchan->ani can never be NULL

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
  • Loading branch information
Felix Fietkau authored and John W. Linville committed Jan 22, 2013
1 parent 9dbac67 commit c5e818e
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/net/wireless/ath/ath9k/ani.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand Down

0 comments on commit c5e818e

Please sign in to comment.