]> git.karo-electronics.de Git - karo-tx-linux.git/commit
ath9k_hw: small optimization in ar9002_hw_get_isr
authorFelix Fietkau <nbd@openwrt.org>
Fri, 15 Oct 2010 18:03:29 +0000 (20:03 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 9 Nov 2010 21:13:24 +0000 (16:13 -0500)
commit45684c75f9aa80eb477465bddcf79c9ad95206c7
tree221ce163359f938fb8b13a28963ea957ee95ff0f
parent4df3071ebd92ef7115b409da64d0eb405d24a631
ath9k_hw: small optimization in ar9002_hw_get_isr

ah->config.rx_intr_mitigation does not need to be checked before checking
the rx interrupt mask for AR_ISR_RXMINTR or AR_ISR_RXINTM, as those
interrupts will be masked out if rx interrupt mitigation is disabled.

Avoid reading AR_ISR_S5_S twice by reordering the code to be more concise.

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ath/ath9k/ar9002_mac.c