staging: rtl8723bs: remove set but not used variable 'FirstConnect'
Fixes gcc '-Wunused-but-set-variable' warning: drivers/staging/rtl8723bs/hal/odm.c: In function 'odm_RSSIMonitorCheckCE': drivers/staging/rtl8723bs/hal/odm.c:1258:7: warning: variable 'FirstConnect' set but not used [-Wunused-but-set-variable] Reported-by: Hulk Robot <hulkci@huawei.com> Signed-off-by: YueHaibing <yuehaibing@huawei.com> Link: https://lore.kernel.org/r/20190731140903.304-1-yuehaibing@huawei.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
parent
d698b0a096
commit
b0d08afda8
@ -1255,13 +1255,11 @@ void odm_RSSIMonitorCheckCE(PDM_ODM_T pDM_Odm)
|
||||
int tmpEntryMaxPWDB = 0, tmpEntryMinPWDB = 0xff;
|
||||
u8 sta_cnt = 0;
|
||||
u32 PWDB_rssi[NUM_STA] = {0};/* 0~15]:MACID, [16~31]:PWDB_rssi */
|
||||
bool FirstConnect = false;
|
||||
pRA_T pRA_Table = &pDM_Odm->DM_RA_Table;
|
||||
|
||||
if (pDM_Odm->bLinked != true)
|
||||
return;
|
||||
|
||||
FirstConnect = (pDM_Odm->bLinked) && (pRA_Table->firstconnect == false);
|
||||
pRA_Table->firstconnect = pDM_Odm->bLinked;
|
||||
|
||||
/* if (check_fwstate(&Adapter->mlmepriv, WIFI_AP_STATE|WIFI_ADHOC_STATE|WIFI_ADHOC_MASTER_STATE) == true) */
|
||||
|
Loading…
Reference in New Issue
Block a user