Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

ath9k: remove redundant if check

parent 7882513b
Loading
Loading
Loading
Loading
+12 −17
Original line number Diff line number Diff line
@@ -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);