Commit 3df95e26 authored by David Lin's avatar David Lin Committed by Kalle Valo

wifi: mwifiex: fix uninitialized firmware_stat

Variable firmware_stat is possible to be used without initialization.
Signed-off-by: default avatarDavid Lin <yu-hao.lin@nxp.com>
Fixes: 1c5d463c ("wifi: mwifiex: add extra delay for firmware ready")
Cc: stable@vger.kernel.org
Reported-by: default avatarkernel test robot <lkp@intel.com>
Reported-by: default avatarDan Carpenter <error27@gmail.com>
Closes: https://lore.kernel.org/r/202312192236.ZflaWYCw-lkp@intel.com/Acked-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@kernel.org>
Link: https://msgid.link/20231221015511.1032128-1-yu-hao.lin@nxp.com
parent 5c16618b
......@@ -779,7 +779,7 @@ static int mwifiex_check_fw_status(struct mwifiex_adapter *adapter,
{
struct sdio_mmc_card *card = adapter->card;
int ret = 0;
u16 firmware_stat;
u16 firmware_stat = 0;
u32 tries;
for (tries = 0; tries < poll_num; tries++) {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment