Staging: rtl8188eu: Replace ternary operator with existing macro
PATCH 1/1 Staging: rtl8188eu: Replace ternary operator with existing macro
Replace ternary operator with existing abs() macro to increase code readability.
Signed-off-by Vatika Harlalka <[email protected]>
--- drivers/staging/rtl8188eu/hal/phy.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
drivers/staging/rtl8188eu/hal/phy.c +2 -3
@@ -599,9 +599,8 @@ void rtl88eu_dm_txpower_tracking_callback_thermalmeter(struct adapter *adapt) }if (delta >0 && dm_odm->RFCalibrateInfo.TxPowerTrackControl) { - delta = thermal_val > hal_data->EEPROMThermalMeter ? - (thermal_val - hal_data->EEPROMThermalMeter) : - (hal_data->EEPROMThermalMeter - thermal_val); + delta =abs (hal_data->EEPROMThermalMeter - thermal_val); +/* calculate new OFDM / CCK offset */ if (thermal_val > hal_data->EEPROMThermalMeter) j =1 ;
Signature · 1 line
1.9.1