ath10k: fix copy-paste error in ath10k_qmi_setup_msa_resources()
authorWei Yongjun <weiyongjun1@huawei.com>
Tue, 16 Oct 2018 02:35:16 +0000 (02:35 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 5 Nov 2018 10:12:15 +0000 (12:12 +0200)
commit4ab7fd955e471a71908d4970017c52b3ef6e47a2
tree800c52a9d03d7d1b9f14bacbab1596c17bb6e6d2
parent5f09037a0cc2b70d2afdb216d236b52e2bee0a2b
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: ba94c753ccb4 ("ath10k: add QMI message handshake for wcn3990 client")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/qmi.c