staging: rtl8723bs: add whitespace before operator
PATCH 1/1 staging: rtl8723bs: add whitespace before operator
fix the following post-commit hook checkpatch error:
spaces required around that '?' (ctx:VxW)
2278: FILE: rtl8723b_hal_init.c:2278:
+ pHalData->ant_path = (tempval & BIT(6))? RF_PATH_B : RF_PATH_A;
^--- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +1 -1
@@ -2275,7 +2275,7 @@ 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 ; + pHalData->ant_path = (tempval &BIT (6 )) ?RF_PATH_B :RF_PATH_A ; }else { pHalData->EEPROMBluetoothAntNum = Ant_x1;if (pHalData->PackageType ==PACKAGE_QFN68 )
Signature · 1 line
2.40.0
Greg KH
maintainerQuoted 1 line · Atin Bainada
fix the following post-commit hook checkpatch error:
We have no default "post-commit hooks" :)
You can run checkpatch.pl on a file, perhaps that is what you did here?
Quoted 15 lines
spaces required around that '?' (ctx:VxW)
2278: FILE: rtl8723b_hal_init.c:2278:+ pHalData->ant_path = (tempval & BIT(6))? RF_PATH_B : RF_PATH_A; ^Signed-off-by Atin Bainada <[email protected]>--- drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +0
-0
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c void Hal_EfuseParseBTCoexistInfo_8723B( · line 2278
Quoted 5 lines
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +1
-1@@ -2275,7 +2275,7 @@ 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 ; + pHalData->ant_path = (tempval &BIT (6 )) ?RF_PATH_B :RF_PATH_A ;
Why not rewrite this as a real if () statement to make it more understandable?
thanks,
greg k-h
I've sent an updated patch with the changes you suggested, please check.
Thanks,
Atin Bainada
------- Original Message -------
Quoted 39 lines · Greg KH
Quoted 1 line · Atin Bainada
fix the following post-commit hook checkpatch error:
We have no default "post-commit hooks" :)
You can run checkpatch.pl on a file, perhaps that is what you did here?
Quoted 17 lines
spaces required around that '?' (ctx:VxW)
2278: FILE: rtl8723b_hal_init.c:2278:
+pHalData->ant_path= (tempval & BIT(6))?RF_PATH_B:RF_PATH_A; ^Signed-off-by Atin Bainada [email protected]---
drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c| 2 +-1 file changed, 1 insertion(+), 1 deletion(-)drivers/staging/rtl8723bs/hal/rtl8723b_hal_init.c +0
-0@@ -2275,7 +2275,7 @@ void Hal_EfuseParseBTCoexistInfo_8723B( pHalData->EEPROMBluetoothAntNum = tempval &BIT (0 );/* EFUSE_0xC3[6] == 0, S1(Main)-RF_PATH_A; / Quoted 3 lines
/ EFUSE_0xC3[6] == 1, S0(Aux)-RF_PATH_B */
-pHalData->ant_path= (tempval & BIT(6))?RF_PATH_B:RF_PATH_A;
+pHalData->ant_path= (tempval & BIT(6)) ?RF_PATH_B:RF_PATH_A;Why not rewrite this as a real if () statement to make it more understandable?
thanks,
greg k-h
Quoted 2 lines · Atin
I've sent an updated patch with the changes you suggested, please check.
Please wait for a minimum of two weeks (not including the merge window) before asking for feedback.
regards,
dan carpenter