Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Felix Fietkau and committed by
John W. Linville
c5e818ef 9dbac67d

-3
-3
drivers/net/wireless/ath/ath9k/ani.c
··· 419 419 return; 420 420 421 421 aniState = &ah->curchan->ani; 422 - if (WARN_ON(!aniState)) 423 - return; 424 - 425 422 if (!ath9k_hw_ani_read_counters(ah)) 426 423 return; 427 424