Commit dffef6de authored by Atin Bainada's avatar Atin Bainada Committed by Greg Kroah-Hartman
Browse files

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: default avatarAtin Bainada <hi@atinb.me>
Link: https://lore.kernel.org/r/20230513214338.79833-1-hi@atinb.me


Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 09201af5
Loading
Loading
Loading
Loading
+4 −1
Original line number Diff line number Diff line
@@ -2275,7 +2275,10 @@ void Hal_EfuseParseBTCoexistInfo_8723B(
			pHalData->EEPROMBluetoothAntNum = tempval & BIT(0);
			/*  EFUSE_0xC3[6] == 0, S1(Main)-RF_PATH_A; */
			/*  EFUSE_0xC3[6] == 1, S0(Aux)-RF_PATH_B */
			pHalData->ant_path = (tempval & BIT(6))? RF_PATH_B : RF_PATH_A;
			if (tempval & BIT(6))
				pHalData->ant_path = RF_PATH_B;
			else
				pHalData->ant_path = RF_PATH_A;
		} else {
			pHalData->EEPROMBluetoothAntNum = Ant_x1;
			if (pHalData->PackageType == PACKAGE_QFN68)