aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8723bs
diff options
context:
space:
mode:
authorDaniel Watson <ozzloy@challenge-bot.com>2022-06-11 20:07:34 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2022-06-12 07:14:33 +0200
commitde9257ae1d3b0d8856955045d194e3ff4f278394 (patch)
tree9977f036e989247bcb7961873f8cb0e4f5468b07 /drivers/staging/rtl8723bs
parentstaging: r8188eu: replace FIELD_OFFSET with offsetof (diff)
downloadlinux-dev-de9257ae1d3b0d8856955045d194e3ff4f278394.tar.xz
linux-dev-de9257ae1d3b0d8856955045d194e3ff4f278394.zip
staging: rtl8723bs: uninitialize static variable
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>
Diffstat (limited to 'drivers/staging/rtl8723bs')
-rw-r--r--drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c b/drivers/staging/rtl8723bs/os_dep/ioctl_cfg80211.c
index 7240220cf6ae..eed4be37d392 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);