projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8c464d1
)
wifi: ath11k: fix return value check in ath11k_ahb_probe()
author
Yang Yingliang
<yangyingliang@huawei.com>
Fri, 17 Feb 2023 03:00:31 +0000
(11:00 +0800)
committer
Kalle Valo
<quic_kvalo@quicinc.com>
Mon, 20 Feb 2023 08:36:28 +0000
(10:36 +0200)
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
patch
|
blob
|
history
diff --git
a/drivers/net/wireless/ath/ath11k/ahb.c
b/drivers/net/wireless/ath/ath11k/ahb.c
index
cd48eca
..
022caac
100644
(file)
--- a/
drivers/net/wireless/ath/ath11k/ahb.c
+++ b/
drivers/net/wireless/ath/ath11k/ahb.c
@@
-1174,7
+1174,7
@@
static int ath11k_ahb_probe(struct platform_device *pdev)
* to a new space for accessing them.
*/
ab->mem_ce = ioremap(ce_remap->base, ce_remap->size);
- if (
IS_ERR(ab->mem_ce)
) {
+ if (
!ab->mem_ce
) {
dev_err(&pdev->dev, "ce ioremap error\n");
ret = -ENOMEM;
goto err_core_free;