qtnfmac: fix error return code in qtnf_pcie_probe()
authorWang Hai <wanghai38@huawei.com>
Sat, 14 Nov 2020 12:33:47 +0000 (20:33 +0800)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 24 Nov 2020 15:02:53 +0000 (17:02 +0200)
commit31e07aa33fa7cdc93fa91c3f78f031e8d38862c2
tree223a5967fd901934cbb4e967e2c44fed40cdfc2e
parent0409d504aa6c621629855f8ac72c29ac6fcebbf0
qtnfmac: fix error return code in qtnf_pcie_probe()

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>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20201114123347.29632-1-wanghai38@huawei.com
drivers/net/wireless/quantenna/qtnfmac/pcie/pcie.c