Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 2e3e66e3 authored by Larry Finger's avatar Larry Finger Committed by John W. Linville
Browse files

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: default avatarLarry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent 22010761
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -685,7 +685,7 @@ static int efuse_pg_packet_read(struct ieee80211_hw *hw, u8 offset, u8 *data)


	u8 efuse_data, word_cnts = 0;
	u8 efuse_data, word_cnts = 0;
	u16 efuse_addr = 0;
	u16 efuse_addr = 0;
	u8 hworden;
	u8 hworden = 0;
	u8 tmpdata[8];
	u8 tmpdata[8];


	if (data == NULL)
	if (data == NULL)
+1 −1
Original line number Original line Diff line number Diff line
@@ -303,7 +303,7 @@ static void _rtl92c_fill_h2c_command(struct ieee80211_hw *hw,
	u16 box_reg, box_extreg;
	u16 box_reg, box_extreg;
	u8 u1b_tmp;
	u8 u1b_tmp;
	bool isfw_read = false;
	bool isfw_read = false;
	u8 buf_index;
	u8 buf_index = 0;
	bool bwrite_sucess = false;
	bool bwrite_sucess = false;
	u8 wait_h2c_limmit = 100;
	u8 wait_h2c_limmit = 100;
	u8 wait_writeh2c_limmit = 100;
	u8 wait_writeh2c_limmit = 100;
+1 −1
Original line number Original line Diff line number Diff line
@@ -246,7 +246,7 @@ static void _rtl_usb_io_handler_init(struct device *dev,


static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw)
static void _rtl_usb_io_handler_release(struct ieee80211_hw *hw)
{
{
	struct rtl_priv *rtlpriv = rtl_priv(hw);
	struct rtl_priv __maybe_unused *rtlpriv = rtl_priv(hw);


	mutex_destroy(&rtlpriv->io.bb_mutex);
	mutex_destroy(&rtlpriv->io.bb_mutex);
}
}