ath9k: remove redundant if check

Signed-off-by: Mohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
This commit is contained in:
Mohammed Shafi Shajakhan 2011-05-19 15:05:46 +05:30 committed by John W. Linville
parent 7882513bac
commit e62ddec94a
1 changed files with 12 additions and 17 deletions

View File

@ -515,8 +515,6 @@ void ath_ani_calibrate(unsigned long data)
common->ani.checkani_timer = timestamp;
}
/* Skip all processing if there's nothing to do. */
if (longcal || shortcal || aniflag) {
/* Call ANI routine if necessary */
if (aniflag) {
spin_lock_irqsave(&common->cc_lock, flags);
@ -528,11 +526,8 @@ void ath_ani_calibrate(unsigned long data)
/* Perform calibration if necessary */
if (longcal || shortcal) {
common->ani.caldone =
ath9k_hw_calibrate(ah,
ah->curchan,
common->rx_chainmask,
longcal);
}
ath9k_hw_calibrate(ah, ah->curchan,
common->rx_chainmask, longcal);
}
ath9k_ps_restore(sc);