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

Commit afe5b7b4 authored by Frederic Danis's avatar Frederic Danis Committed by Kalle Valo
Browse files

ath10k: fix ath10k_bmi_read32 macro



tmp may be used uninitialized if ath10k_bmi_read_memory() returns
an error.

Signed-off-by: default avatarFrederic Danis <frederic.danis@linux.intel.com>
Signed-off-by: default avatarKalle Valo <kvalo@qca.qualcomm.com>
parent f2708bed
Loading
Loading
Loading
Loading
+2 −1
Original line number Diff line number Diff line
@@ -201,6 +201,7 @@ int ath10k_bmi_write_memory(struct ath10k *ar, u32 address,
									\
		addr = host_interest_item_address(HI_ITEM(item));	\
		ret = ath10k_bmi_read_memory(ar, addr, (u8 *)&tmp, 4); \
		if (!ret)						\
			*val = __le32_to_cpu(tmp);			\
		ret;							\
	 })