]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
staging: rtlwifi: Remove unused variable
authorKees Cook <keescook@chromium.org>
Tue, 24 Oct 2017 08:26:29 +0000 (01:26 -0700)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Nov 2017 11:48:56 +0000 (12:48 +0100)
This removes an unused variable to silence the associated build warning.

Fixes: f8af6a323368 ("staging: rtlwifi: Convert timers to use timer_setup()")
Signed-off-by: Kees Cook <keescook@chromium.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtlwifi/base.c

index 2c693c7aa9d5817bd434377be080ea91056d3ac3..c947def37d31c24d22861f098e806c2d4d8c6425 100644 (file)
@@ -2164,7 +2164,6 @@ label_lps_done:
 void rtl_watch_dog_timer_callback(struct timer_list *t)
 {
        struct rtl_priv *rtlpriv = from_timer(rtlpriv, t, works.watchdog_timer);
-       struct ieee80211_hw *hw = rtlpriv->hw;
 
        queue_delayed_work(rtlpriv->works.rtl_wq,
                           &rtlpriv->works.watchdog_wq, 0);