Skip to content

Commit

Permalink
ath10k: go to path err_unsupported when chip id is not supported
Browse files Browse the repository at this point in the history
[ Upstream commit 9e88dd4 ]

When chip id is not supported, it go to path err_unsupported
to print the error message.

Fixes: f8914a1 ("ath10k: restore QCA9880-AR1A (v1) detection")
Signed-off-by: Yang Yingliang <yangyingliang@huawei.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/20210522105822.1091848-2-yangyingliang@huawei.com
Signed-off-by: Sasha Levin <sashal@kernel.org>
  • Loading branch information
Yang Yingliang authored and gregkh committed Jul 14, 2021
1 parent 4654f1f commit 668c066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/net/wireless/ath/ath10k/pci.c
Original file line number Diff line number Diff line change
Expand Up @@ -3700,7 +3700,7 @@ static int ath10k_pci_probe(struct pci_dev *pdev,
goto err_unsupported;

if (!ath10k_pci_chip_is_supported(pdev->device, bus_params.chip_id))
goto err_free_irq;
goto err_unsupported;

ret = ath10k_core_register(ar, &bus_params);
if (ret) {
Expand Down

0 comments on commit 668c066

Please sign in to comment.