Commit 4ab7fd95 authored by Wei Yongjun's avatar Wei Yongjun Committed by Kalle Valo
Browse files

ath10k: fix copy-paste error in ath10k_qmi_setup_msa_resources()



The return value from devm_memremap() is not checked correctly.
The test is done against a wrong variable. This patch fix it.

Fixes: ba94c753 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: default avatarWei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 5f09037a
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -931,7 +931,7 @@ static int ath10k_qmi_setup_msa_resources(struct ath10k_qmi *qmi, u32 msa_size)
		qmi->msa_mem_size = resource_size(&r);
		qmi->msa_va = devm_memremap(dev, qmi->msa_pa, qmi->msa_mem_size,
					    MEMREMAP_WT);
		if (!qmi->msa_pa) {
		if (!qmi->msa_va) {
			dev_err(dev, "failed to map memory region: %pa\n", &r.start);
			return -EBUSY;
		}