staging: rtl8723bs: HalBtc8723b1Ant.c: Remove unused variables
PATCH 1/1 staging: rtl8723bs: HalBtc8723b1Ant.c: Remove unused variables
Fix the build warning: [-Wunused-but-set-variable]
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2710:6: warning: variable ‘u4Tmp’ set but not used
2710 | u32 u4Tmp;
| ^~~~~
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:13: warning: variable ‘u1Tmpb’ set but not used
2709 | u8 u1Tmpa, u1Tmpb;
| ^~~~~~
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:5: warning: variable ‘u1Tmpa’ set but not used
2709 | u8 u1Tmpa, u1Tmpb;
| ^~~~~~Reported-by Hulk Robot <[email protected]>
Signed-off-by Bixuan Cui <[email protected]>
--- drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +3 -6
@@ -2706,9 +2706,6 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type)bool bBtCtrlAggBufSize = false;u8 aggBufSize =5 ; -u8 u1Tmpa, u1Tmpb; -u32 u4Tmp; -if (pBtCoexist->bManualControl || pBtCoexist->bStopCoexDm)return ;
@@ -2716,9 +2713,9 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type) pCoexSta->bWiFiIsHighPriTask = true;halbtc8723b1ant_PsTdma (pBtCoexist,FORCE_EXEC , false,8 );/* Force antenna setup for no scan result issue */ - u4Tmp = pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); - u1Tmpa = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); - u1Tmpb = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); + pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); }else { pCoexSta->bWiFiIsHighPriTask = false;
Signature · 1 line
2.17.1
Greg KH
maintainerQuoted 49 lines · Bixuan Cui
Fix the build warning: [-Wunused-but-set-variable]
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2710:6: warning: variable ‘u4Tmp’ set but not used2710 | u32 u4Tmp; | ^~~~~ drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:13: warning: variable ‘u1Tmpb’ set but not used 2709 | u8 u1Tmpa, u1Tmpb; | ^~~~~~ drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c:2709:5: warning: variable ‘u1Tmpa’ set but not used 2709 | u8 u1Tmpa, u1Tmpb; | ^~~~~~Reported-by Hulk Robot <[email protected]>Signed-off-by Bixuan Cui <[email protected]>--- drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c | 9 +++------ 1 file changed, 3 insertions(+), 6 deletions(-)drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +3
-6@@ -2706,9 +2706,6 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type)bool bBtCtrlAggBufSize = false;u8 aggBufSize =5 ; -u8 u1Tmpa, u1Tmpb; -u32 u4Tmp; -if (pBtCoexist->bManualControl || pBtCoexist->bStopCoexDm)return ;@@ -2716,9 +2713,9 @@ void EXhalbtc8723b1ant_ScanNotify(struct btc_coexist *pBtCoexist, u8 type) pCoexSta->bWiFiIsHighPriTask = true;halbtc8723b1ant_PsTdma (pBtCoexist,FORCE_EXEC , false,8 );/* Force antenna setup for no scan result issue */ - u4Tmp = pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); - u1Tmpa = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); - u1Tmpb = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); + pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); }else { pCoexSta->bWiFiIsHighPriTask = false;Signature · 1 line
2.17.1
Does not apply to my tree :(
Quoted 10 lines · Greg KH
Quoted 10 lines
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c +3
-3halbtc8723b1ant_PsTdma (pBtCoexist,FORCE_EXEC , false,8 );/* Force antenna setup for no scan result issue */ - u4Tmp = pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); - u1Tmpa = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); - u1Tmpb = pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); + pBtCoexist->fBtcRead4Byte (pBtCoexist,0x948 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x765 ); + pBtCoexist->fBtcRead1Byte (pBtCoexist,0x67 ); }else { pCoexSta->bWiFiIsHighPriTask = false;
Quoted 5 lines
Quoted 4 lines
Signature · 1 line
2.17.1Does not apply to my tree :(
Hi,
This warning has been fixed by commit db52e8f48067. Please ignore my patch.
Thanks
Bixuan Cui
Quoted 1 line
.