Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c5e818ef authored by Felix Fietkau's avatar Felix Fietkau Committed by John W. Linville
Browse files

ath9k_hw: remove a useless WARN_ON



&ah->curchan->ani can never be NULL

Signed-off-by: default avatarFelix Fietkau <nbd@openwrt.org>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 9dbac67d
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -419,9 +419,6 @@ void ath9k_hw_ani_monitor(struct ath_hw *ah, struct ath9k_channel *chan)
		return;
		return;


	aniState = &ah->curchan->ani;
	aniState = &ah->curchan->ani;
	if (WARN_ON(!aniState))
		return;

	if (!ath9k_hw_ani_read_counters(ah))
	if (!ath9k_hw_ani_read_counters(ah))
		return;
		return;