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

Commit a9a65a6b authored by Gustavo A. R. Silva's avatar Gustavo A. R. Silva Committed by Kalle Valo
Browse files

rtlwifi: rtl8723be: fix duplicated code for different branches



Refactor code in order to avoid identical code for different branches.

Addresses-Coverity-ID: 1248728
Signed-off-by: default avatarGustavo A. R. Silva <gustavo@embeddedor.com>
Acked-by: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent f38966a7
Loading
Loading
Loading
Loading
+2 −6
Original line number Diff line number Diff line
@@ -883,10 +883,6 @@ static void rtl8723be_dm_txpower_tracking_callback_thermalmeter(
	if ((rtldm->power_index_offset[RF90_PATH_A] != 0) &&
	    (rtldm->txpower_track_control)) {
		rtldm->done_txpower = true;
		if (thermalvalue > rtlefuse->eeprom_thermalmeter)
			rtl8723be_dm_tx_power_track_set_power(hw, BBSWING, 0,
							     index_for_channel);
		else
		rtl8723be_dm_tx_power_track_set_power(hw, BBSWING, 0,
						      index_for_channel);