aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/staging/rtl8192u/ieee80211
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2018-01-22 15:57:30 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2018-01-23 11:42:03 +0100
commitf93a2b8b161c7a41dfd844c025b89938415a503c (patch)
treef202819cfe64982dd6429e1ec35c3dff03c1e5fb /drivers/staging/rtl8192u/ieee80211
parentstaging: sm750fb: fix CamelCase for dispSet var (diff)
downloadlinux-dev-f93a2b8b161c7a41dfd844c025b89938415a503c.tar.xz
linux-dev-f93a2b8b161c7a41dfd844c025b89938415a503c.zip
staging: rtl8192u: remove redundant initialization of 'timeout'
Variable timeout is initialized however this value is never read and it is reassigned a new value a little later, hence the initialization is redundant and can be removed. Cleans up clang warning: drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c:1728:6: warning: Value stored to 'timeout' during its initialization is never read Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/rtl8192u/ieee80211')
-rw-r--r--drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
index f56fdc7a4b61..25c186a8bde3 100644
--- a/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
+++ b/drivers/staging/rtl8192u/ieee80211/ieee80211_softmac.c
@@ -1725,7 +1725,7 @@ static void ieee80211_sta_ps_send_null_frame(struct ieee80211_device *ieee,
static short ieee80211_sta_ps_sleep(struct ieee80211_device *ieee, u32 *time_h,
u32 *time_l)
{
- int timeout = ieee->ps_timeout;
+ int timeout;
u8 dtim;
/*if(ieee->ps == IEEE80211_PS_DISABLED ||
ieee->iw_mode != IW_MODE_INFRA ||