* [PATCH -next] ath10k: fix error return code in ahb
@ 2016-09-16 13:05 Wei Yongjun
2016-09-28 9:44 ` [-next] " Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Wei Yongjun @ 2016-09-16 13:05 UTC (permalink / raw)
To: Kalle Valo, Raja Mani; +Cc: Wei Yongjun, ath10k, linux-wireless
From: Wei Yongjun <weiyongjun1@huawei.com>
Fix to return a negative error code from the error handling case
instead of 0, as done elsewhere in function ath10k_ahb_probe() or
ath10k_ahb_resource_init().
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
---
drivers/net/wireless/ath/ath10k/ahb.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c
index b99ad5d..6dc1c60 100644
--- a/drivers/net/wireless/ath/ath10k/ahb.c
+++ b/drivers/net/wireless/ath/ath10k/ahb.c
@@ -572,6 +572,7 @@ static int ath10k_ahb_resource_init(struct ath10k *ar)
ar_ahb->irq = platform_get_irq_byname(pdev, "legacy");
if (ar_ahb->irq < 0) {
ath10k_err(ar, "failed to get irq number: %d\n", ar_ahb->irq);
+ ret = ar_ahb->irq;
goto err_clock_deinit;
}
@@ -850,6 +851,7 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
chip_id = ath10k_ahb_soc_read32(ar, SOC_CHIP_ID_ADDRESS);
if (chip_id == 0xffffffff) {
ath10k_err(ar, "failed to get chip id\n");
+ ret = -ENODEV;
goto err_halt_device;
}
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [-next] ath10k: fix error return code in ahb
2016-09-16 13:05 [PATCH -next] ath10k: fix error return code in ahb Wei Yongjun
@ 2016-09-28 9:44 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2016-09-28 9:44 UTC (permalink / raw)
To: Wei Yongjun; +Cc: Raja Mani, linux-wireless, Wei Yongjun, ath10k
Wei Yongjun <weiyj.lk@gmail.com> wrote:
> From: Wei Yongjun <weiyongjun1@huawei.com>
>
> Fix to return a negative error code from the error handling case
> instead of 0, as done elsewhere in function ath10k_ahb_probe() or
> ath10k_ahb_resource_init().
>
> Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Patch applied to ath-next branch of ath.git, thanks.
931eb6b7fee3 ath10k: fix error return code in ahb
--
https://patchwork.kernel.org/patch/9335759/
Documentation about submitting wireless patches and checking status
from patchwork:
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2016-09-28 9:44 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-09-16 13:05 [PATCH -next] ath10k: fix error return code in ahb Wei Yongjun
2016-09-28 9:44 ` [-next] " Kalle Valo
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).