wifi: ath11k: fix return value check in ath11k_ahb_probe()
authorYang Yingliang <yangyingliang@huawei.com>
Fri, 17 Feb 2023 03:00:31 +0000 (11:00 +0800)
committerKalle Valo <quic_kvalo@quicinc.com>
Mon, 20 Feb 2023 08:36:28 +0000 (10:36 +0200)
commit342fcde9d91460f01f65707e16368a1571271a3a
tree3707257e681783f1bb40c12a11eab841a31aca64
parent8c464d16809fa02982f6341ea598ec5d07457f19
wifi: ath11k: fix return value check in ath11k_ahb_probe()

ioremap() returns NULL pointer not PTR_ERR() when it fails,
so replace the IS_ERR() check with NULL pointer check.

Fixes: b42b3678c91f ("wifi: ath11k: remap ce register space for IPQ5018")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230217030031.4021289-1-yangyingliang@huawei.com
drivers/net/wireless/ath/ath11k/ahb.c