staging: rtl8723bs: uninitialize static variable
authorDaniel Watson <ozzloy@challenge-bot.com>
Sun, 12 Jun 2022 03:07:34 +0000 (20:07 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Jun 2022 05:14:33 +0000 (07:14 +0200)
ensure static variable is not initialized, per checkpatch

Signed-off-by: Daniel Watson <ozzloy@challenge-bot.com>
Link: https://lore.kernel.org/r/20220612030734.31469-1-ozzloy@challenge-bot.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c

index 7240220..eed4be3 100644 (file)
@@ -1256,7 +1256,7 @@ static int cfg80211_rtw_scan(struct wiphy *wiphy
        }
 
        if (pmlmepriv->LinkDetectInfo.bBusyTraffic == true) {
-               static unsigned long lastscantime = 0;
+               static unsigned long lastscantime;
                unsigned long passtime;
 
                passtime = jiffies_to_msecs(jiffies - lastscantime);