Commit e62ddec9 authored by Mohammed Shafi Shajakhan's avatar Mohammed Shafi Shajakhan Committed by John W. Linville

ath9k: remove redundant if check

Signed-off-by: default avatarMohammed Shafi Shajakhan <mshajakhan@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 7882513b
...@@ -515,24 +515,19 @@ void ath_ani_calibrate(unsigned long data) ...@@ -515,24 +515,19 @@ void ath_ani_calibrate(unsigned long data)
common->ani.checkani_timer = timestamp; common->ani.checkani_timer = timestamp;
} }
/* Skip all processing if there's nothing to do. */ /* Call ANI routine if necessary */
if (longcal || shortcal || aniflag) { if (aniflag) {
/* Call ANI routine if necessary */ spin_lock_irqsave(&common->cc_lock, flags);
if (aniflag) { ath9k_hw_ani_monitor(ah, ah->curchan);
spin_lock_irqsave(&common->cc_lock, flags); ath_update_survey_stats(sc);
ath9k_hw_ani_monitor(ah, ah->curchan); spin_unlock_irqrestore(&common->cc_lock, flags);
ath_update_survey_stats(sc); }
spin_unlock_irqrestore(&common->cc_lock, flags);
}
/* Perform calibration if necessary */ /* Perform calibration if necessary */
if (longcal || shortcal) { if (longcal || shortcal) {
common->ani.caldone = common->ani.caldone =
ath9k_hw_calibrate(ah, ath9k_hw_calibrate(ah, ah->curchan,
ah->curchan, common->rx_chainmask, longcal);
common->rx_chainmask,
longcal);
}
} }
ath9k_ps_restore(sc); ath9k_ps_restore(sc);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment