ath9k_hw: bail out early on ath9k_hw_init_rf()

We a huge branch for old hardware and nothing for newer
hardware. Instead of doing this just bail out early for
newer hardware.

This patch has no functional changes.

Signed-off-by: Luis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Luis R. Rodriguez
2009-10-19 02:33:36 -04:00
committed by John W. Linville
parent 131d1d036a
commit b67b4397cf

View File

@@ -419,7 +419,9 @@ bool ath9k_hw_init_rf(struct ath_hw *ah, int *status)
{ {
struct ath_common *common = ath9k_hw_common(ah); struct ath_common *common = ath9k_hw_common(ah);
if (!AR_SREV_9280_10_OR_LATER(ah)) { if (AR_SREV_9280_10_OR_LATER(ah))
return true;
ah->analogBank0Data = ah->analogBank0Data =
kzalloc((sizeof(u32) * kzalloc((sizeof(u32) *
ah->iniBank0.ia_rows), GFP_KERNEL); ah->iniBank0.ia_rows), GFP_KERNEL);
@@ -475,7 +477,6 @@ bool ath9k_hw_init_rf(struct ath_hw *ah, int *status)
*status = -ENOMEM; *status = -ENOMEM;
return false; return false;
} }
}
return true; return true;
} }