]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ath9k_hw: remove unnecessary parts of the AR9380 SREV check
authorFelix Fietkau <nbd@openwrt.org>
Fri, 8 Apr 2011 18:49:16 +0000 (20:49 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 12 Apr 2011 20:58:50 +0000 (16:58 -0400)
Older versions have not been sold and the driver does not explicitly
check for them anyway, so we can simply ignore the macRev here.
Reduces ath9k_hw size on mips by more than 2 KB.

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

index 693d543937b599d0e311383db220a007bfc3dd21..2fbbe8842bb9341cdd8deed2fd90e963724145fd 100644 (file)
 #define AR_SREV_9300(_ah) \
        (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9300))
 #define AR_SREV_9300_20_OR_LATER(_ah) \
-       (((_ah)->hw_version.macVersion > AR_SREV_VERSION_9300) || \
-        (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9300) && \
-         ((_ah)->hw_version.macRev >= AR_SREV_REVISION_9300_20)))
+       ((_ah)->hw_version.macVersion >= AR_SREV_VERSION_9300)
 
 #define AR_SREV_9485(_ah) \
        (((_ah)->hw_version.macVersion == AR_SREV_VERSION_9485))