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

Commit 80b99932 authored by Luis R. Rodriguez's avatar Luis R. Rodriguez Committed by John W. Linville
Browse files

ath9k_hw: shift code for AR9280 OLC temp comp



We're bailing out on the alternative code path so remove the
else branch.

Signed-off-by: default avatarLuis R. Rodriguez <lrodriguez@atheros.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent becdbc54
Loading
Loading
Loading
Loading
+17 −18
Original line number Diff line number Diff line
@@ -711,9 +711,9 @@ static void ath9k_olc_temp_compensation(struct ath_hw *ah)
		rddata = REG_READ(ah, AR_PHY_TX_PWRCTRL4);
		currPDADC = MS(rddata, AR_PHY_TX_PWRCTRL_PD_AVG_OUT);

		if (ah->initPDADC == 0 || currPDADC == 0) {
		if (ah->initPDADC == 0 || currPDADC == 0)
			return;
		} else {

		if (ah->eep_ops->get_eeprom(ah, EEP_DAC_HPWR_5G))
			delta = (currPDADC - ah->initPDADC + 4) / 8;
		else
@@ -733,7 +733,6 @@ static void ath9k_olc_temp_compensation(struct ath_hw *ah)
		}
	}
}
}

static void ath9k_hw_9271_pa_cal(struct ath_hw *ah, bool is_reset)
{