mirror of
https://github.com/torvalds/linux.git
synced 2026-06-02 19:43:40 +02:00
staging: rtl8723bs: hal: Remove set but unused variables
Removed set but unused variables. Issue detected by GCC running with the warning option -Wunused-but-set-variable. Removed the storage of the values returned but left the reads because it is possible that removing them can prevent the hardware from working properly. Signed-off-by: Fabio M. De Francesco <fmdefrancesco@gmail.com> Link: https://lore.kernel.org/r/20210523174547.20646-1-fmdefrancesco@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
6ec070e872
commit
db52e8f480
|
|
@ -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;
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user