rtlwifi: Fix some warnings/bugs

Some compiler/architecture combinations generate some warnings that are
not seen on my main system. Two of the "warnings" about unitialized variables
are really bugs.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>

authored by Larry Finger and committed by John W. Linville 2e3e66e3 22010761

+3 -3
+1 -1
drivers/net/wireless/rtlwifi/efuse.c
··· 685 686 u8 efuse_data, word_cnts = 0; 687 u16 efuse_addr = 0; 688 - u8 hworden; 689 u8 tmpdata[8]; 690 691 if (data == NULL)
··· 685 686 u8 efuse_data, word_cnts = 0; 687 u16 efuse_addr = 0; 688 + u8 hworden = 0; 689 u8 tmpdata[8]; 690 691 if (data == NULL)
+1 -1
drivers/net/wireless/rtlwifi/rtl8192c/fw_common.c
··· 303 u16 box_reg, box_extreg; 304 u8 u1b_tmp; 305 bool isfw_read = false; 306 - u8 buf_index; 307 bool bwrite_sucess = false; 308 u8 wait_h2c_limmit = 100; 309 u8 wait_writeh2c_limmit = 100;
··· 303 u16 box_reg, box_extreg; 304 u8 u1b_tmp; 305 bool isfw_read = false; 306 + u8 buf_index = 0; 307 bool bwrite_sucess = false; 308 u8 wait_h2c_limmit = 100; 309 u8 wait_writeh2c_limmit = 100;
+1 -1
drivers/net/wireless/rtlwifi/usb.c
··· 246 247 static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw) 248 { 249 - struct rtl_priv *rtlpriv = rtl_priv(hw); 250 251 mutex_destroy(&rtlpriv->io.bb_mutex); 252 }
··· 246 247 static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw) 248 { 249 + struct rtl_priv __maybe_unused *rtlpriv = rtl_priv(hw); 250 251 mutex_destroy(&rtlpriv->io.bb_mutex); 252 }