* [PATCH net] qtnfmac: fix error return code in qtnf_pcie_probe()
@ 2020-11-14 12:33 Wang Hai
2020-11-24 15:03 ` Kalle Valo
0 siblings, 1 reply; 2+ messages in thread
From: Wang Hai @ 2020-11-14 12:33 UTC (permalink / raw)
To: davem, kuba, imitsyanko, geomatsi, kvalo
Cc: linux-wireless, netdev, linux-kernel
Fix to return a negative error code from the error handling
case instead of 0, as done elsewhere in this function.
Fixes: b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Wang Hai <wanghai38@huawei.com>
---
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
index 5337e67092ca..0f328ce47fee 100644
--- a/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
+++ b/drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c
@@ -299,19 +299,19 @@ static int qtnf_pcie_probe(struct pci_dev *pdev, const struct pci_device_id *id)
sysctl_bar = qtnf_map_bar(pdev, QTN_SYSCTL_BAR);
if (IS_ERR(sysctl_bar)) {
pr_err("failed to map BAR%u\n", QTN_SYSCTL_BAR);
- return ret;
+ return PTR_ERR(sysctl_bar);
}
dmareg_bar = qtnf_map_bar(pdev, QTN_DMA_BAR);
if (IS_ERR(dmareg_bar)) {
pr_err("failed to map BAR%u\n", QTN_DMA_BAR);
- return ret;
+ return PTR_ERR(dmareg_bar);
}
epmem_bar = qtnf_map_bar(pdev, QTN_SHMEM_BAR);
if (IS_ERR(epmem_bar)) {
pr_err("failed to map BAR%u\n", QTN_SHMEM_BAR);
- return ret;
+ return PTR_ERR(epmem_bar);
}
chipid = qtnf_chip_id_get(sysctl_bar);
--
2.17.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH net] qtnfmac: fix error return code in qtnf_pcie_probe()
2020-11-14 12:33 [PATCH net] qtnfmac: fix error return code in qtnf_pcie_probe() Wang Hai
@ 2020-11-24 15:03 ` Kalle Valo
0 siblings, 0 replies; 2+ messages in thread
From: Kalle Valo @ 2020-11-24 15:03 UTC (permalink / raw)
To: Wang Hai
Cc: davem, kuba, imitsyanko, geomatsi, linux-wireless, netdev,
linux-kernel
Wang Hai <wanghai38@huawei.com> wrote:
> Fix to return a negative error code from the error handling
> case instead of 0, as done elsewhere in this function.
>
> Fixes: b7da53cd6cd1 ("qtnfmac_pcie: use single PCIe driver for all platforms")
> Reported-by: Hulk Robot <hulkci@huawei.com>
> Signed-off-by: Wang Hai <wanghai38@huawei.com>
Patch applied to wireless-drivers-next.git, thanks.
31e07aa33fa7 qtnfmac: fix error return code in qtnf_pcie_probe()
--
https://patchwork.kernel.org/project/linux-wireless/patch/20201114123347.29632-1-wanghai38@huawei.com/
https://wireless.wiki.kernel.org/en/developers/documentation/submittingpatches
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2020-11-24 15:03 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2020-11-14 12:33 [PATCH net] qtnfmac: fix error return code in qtnf_pcie_probe() Wang Hai
2020-11-24 15:03 ` 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).