Skip to content

Commit dffef6d

Browse files
Atin Bainadagregkh
authored andcommitted
staging: rtl8723bs: replace ternary operator with if-else block
replace the ternary operator used for assignment of pHalData->ant_path with an if-else block for better readability Signed-off-by: Atin Bainada <hi@atinb.me> Link: https://lore.kernel.org/r/20230513214338.79833-1-hi@atinb.me Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
1 parent 09201af commit dffef6d

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2275,7 +2275,10 @@ void Hal_EfuseParseBTCoexistInfo_8723B(
22752275
pHalData->EEPROMBluetoothAntNum = tempval & BIT(0);
22762276
/* EFUSE_0xC3[6] == 0, S1(Main)-RF_PATH_A; */
22772277
/* EFUSE_0xC3[6] == 1, S0(Aux)-RF_PATH_B */
2278-
pHalData->ant_path = (tempval & BIT(6))? RF_PATH_B : RF_PATH_A;
2278+
if (tempval & BIT(6))
2279+
pHalData->ant_path = RF_PATH_B;
2280+
else
2281+
pHalData->ant_path = RF_PATH_A;
22792282
} else {
22802283
pHalData->EEPROMBluetoothAntNum = Ant_x1;
22812284
if (pHalData->PackageType == PACKAGE_QFN68)

0 commit comments

Comments
 (0)