rtlwifi: rtl8192cu: Fix W=1 build warning
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 1 Feb 2013 16:40:25 +0000 (10:40 -0600)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 1 Feb 2013 19:27:26 +0000 (14:27 -0500)
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>
drivers/net/wireless/rtlwifi/rtl8192cu/sw.c

index b7e6607e6b6d038bd604657bb4fdcc883b171d7a..d9e659f92767f8e4114df8339580f0d370a24b0b 100644 (file)
@@ -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)