Skip to content

Commit

Permalink
rtlwifi: rtl8192cu: Fix W=1 build warning
Browse files Browse the repository at this point in the history
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 <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
  • Loading branch information
lwfinger authored and linvjw committed Feb 1, 2013
1 parent 8a8e31c commit 0b94834
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/rtlwifi/rtl8192cu/sw.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 0b94834

Please sign in to comment.