From: Daniel Watson Date: Sun, 12 Jun 2022 03:07:34 +0000 (-0700) Subject: staging: rtl8723bs: uninitialize static variable X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=de9257ae1d3b0d8856955045d194e3ff4f278394;p=linux.git staging: rtl8723bs: uninitialize static variable ensure static variable is not initialized, per checkpatch Signed-off-by: Daniel Watson Link: https://lore.kernel.org/r/20220612030734.31469-1-ozzloy@challenge-bot.com Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c index 7240220cf6ae7..eed4be37d3928 100644 --- a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c +++ b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c @@ -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);