staging: rtl8723bs: Fix initialization of static variables
authorJustin Vreeland <justin@jvreeland.com>
Tue, 2 May 2017 00:52:48 +0000 (18:52 -0600)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 May 2017 05:41:57 +0000 (07:41 +0200)
Do not initialize static to 0
Do not initialize static to false

Signed-off-by: Justin Vreeland <justin@jvreeland.com>
Reviewed-by: Bastien Nocera <hadess@hadess.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/HalBtc8723b1Ant.c
drivers/staging/rtl8723bs/hal/HalBtc8723b2Ant.c
drivers/staging/rtl8723bs/hal/hal_btcoex.c
drivers/staging/rtl8723bs/hal/odm_DIG.c

index 86040ad..37f42bf 100644 (file)
@@ -404,7 +404,7 @@ static void halbtc8723b1ant_MonitorWiFiCtr(PBTC_COEXIST pBtCoexist)
 {
        s32     wifiRssi = 0;
        bool bWifiBusy = false, bWifiUnderBMode = false;
-       static u8 nCCKLockCounter = 0;
+       static u8 nCCKLockCounter;
 
        pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_BL_WIFI_BUSY, &bWifiBusy);
        pBtCoexist->fBtcGet(pBtCoexist, BTC_GET_S4_WIFI_RSSI, &wifiRssi);
@@ -488,7 +488,7 @@ static void halbtc8723b1ant_MonitorWiFiCtr(PBTC_COEXIST pBtCoexist)
 
 static bool halbtc8723b1ant_IsWifiStatusChanged(PBTC_COEXIST pBtCoexist)
 {
-       static bool     bPreWifiBusy = false, bPreUnder4way = false, bPreBtHsOn = false;
+       static bool     bPreWifiBusy, bPreUnder4way, bPreBtHsOn;
        bool bWifiBusy = false, bUnder4way = false, bBtHsOn = false;
        bool bWifiConnected = false;
 
@@ -2754,7 +2754,7 @@ void EXhalbtc8723b1ant_DisplayCoexInfo(PBTC_COEXIST pBtCoexist)
        u32 wifiBw, wifiTrafficDir, faOfdm, faCck, wifiLinkStatus;
        u8 wifiDot11Chnl, wifiHsChnl;
        u32 fwVer = 0, btPatchVer = 0;
-       static u8 PopReportIn10s = 0;
+       static u8 PopReportIn10s;
 
        CL_SPRINTF(
                cliBuf,
@@ -3751,7 +3751,7 @@ void EXhalbtc8723b1ant_PnpNotify(PBTC_COEXIST pBtCoexist, u8 pnpState)
 
 void EXhalbtc8723b1ant_Periodical(PBTC_COEXIST pBtCoexist)
 {
-       static u8 disVerInfoCnt = 0;
+       static u8 disVerInfoCnt;
        u32 fwVer = 0, btPatchVer = 0;
 
        BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE, ("[BTCoex], ==========================Periodical ===========================\n"));
index f5bc511..33610d3 100644 (file)
@@ -282,7 +282,7 @@ static void halbtc8723b2ant_QueryBtInfo(PBTC_COEXIST pBtCoexist)
 
 static bool halbtc8723b2ant_IsWifiStatusChanged(PBTC_COEXIST pBtCoexist)
 {
-       static bool     bPreWifiBusy = false, bPreUnder4way = false, bPreBtHsOn = false;
+       static bool     bPreWifiBusy, bPreUnder4way, bPreBtHsOn;
        bool bWifiBusy = false, bUnder4way = false, bBtHsOn = false;
        bool bWifiConnected = false;
 
@@ -3706,7 +3706,7 @@ void EXhalbtc8723b2ant_PnpNotify(PBTC_COEXIST pBtCoexist, u8 pnpState)
 
 void EXhalbtc8723b2ant_Periodical(PBTC_COEXIST pBtCoexist)
 {
-       static u8 disVerInfoCnt = 0;
+       static u8 disVerInfoCnt;
        u32 fwVer = 0, btPatchVer = 0;
 
        BTC_PRINT(BTC_MSG_ALGORITHM, ALGO_TRACE, ("[BTCoex], ==========================Periodical ===========================\n"));
index cc7e090..9e08a4d 100644 (file)
@@ -385,7 +385,7 @@ static s32 halbtcoutsrc_GetWifiRssi(struct adapter *padapter)
 static u8 halbtcoutsrc_GetWifiScanAPNum(struct adapter *padapter)
 {
        struct mlme_ext_priv *pmlmeext;
-       static u8 scan_AP_num = 0;
+       static u8 scan_AP_num;
 
        pmlmeext = &padapter->mlmeextpriv;
 
index ba8e8eb..202c52f 100644 (file)
@@ -372,7 +372,7 @@ void odm_PauseDIG(
 {
        PDM_ODM_T pDM_Odm = (PDM_ODM_T)pDM_VOID;
        pDIG_T pDM_DigTable = &pDM_Odm->DM_DigTable;
-       static bool bPaused = false;
+       static bool bPaused;
 
        ODM_RT_TRACE(pDM_Odm, ODM_COMP_DIG, ODM_DBG_LOUD, ("odm_PauseDIG() =========>\n"));