diff options
author | Larry Finger <Larry.Finger@lwfinger.net> | 2013-02-01 17:40:25 +0100 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2013-02-01 20:27:26 +0100 |
commit | 0b948341f398646b0d59d746800fbbf3656886e7 (patch) | |
tree | 5b2ee71194f90245f67b730a14bd32391db65d70 /drivers/net/wireless/rtlwifi/rtl8192cu | |
parent | rtlwifi: rtl8192c: Fix W=1 warning (diff) | |
download | linux-0b948341f398646b0d59d746800fbbf3656886e7.tar.xz linux-0b948341f398646b0d59d746800fbbf3656886e7.zip |
rtlwifi: rtl8192cu: Fix W=1 build warning
When this driver is built with "make W=1", the following warning is output:
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c:56:6: warning: variable ‘err’ set but not used [-Wunused-but-set-variable]
Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/rtlwifi/rtl8192cu')
-rw-r--r-- | drivers/net/wireless/rtlwifi/rtl8192cu/sw.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c index b7e6607e6b6d..d9e659f92767 100644 --- a/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c +++ b/drivers/net/wireless/rtlwifi/rtl8192cu/sw.c @@ -76,7 +76,7 @@ static int rtl92cu_init_sw_vars(struct ieee80211_hw *hw) GFP_KERNEL, hw, rtl_fw_cb); - return 0; + return err; } static void rtl92cu_deinit_sw_vars(struct ieee80211_hw *hw) |