diff options
author | Govind Singh <govinds@codeaurora.org> | 2018-06-13 12:18:06 +0530 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-06-14 18:21:18 +0300 |
commit | d16a7ab20ac9861979c83d7fce8f5edc48daada6 (patch) | |
tree | 3a721289484d1948ccd8b4a557e10ca92454393a | |
parent | 5db98aee93cd1ba5b94b1a9bc9057c98e2a36fd6 (diff) | |
download | linux-d16a7ab20ac9861979c83d7fce8f5edc48daada6.tar.gz linux-d16a7ab20ac9861979c83d7fce8f5edc48daada6.tar.bz2 linux-d16a7ab20ac9861979c83d7fce8f5edc48daada6.zip |
ath10k: handle resource init failure case
Return type of resource init method is not assigned.
Handle resource init failures for graceful exit.
Signed-off-by: Govind Singh <govinds@codeaurora.org>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
-rw-r--r-- | drivers/net/wireless/ath/ath10k/snoc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/net/wireless/ath/ath10k/snoc.c b/drivers/net/wireless/ath/ath10k/snoc.c index f3db08d98810..fa1843a7e0fd 100644 --- a/drivers/net/wireless/ath/ath10k/snoc.c +++ b/drivers/net/wireless/ath/ath10k/snoc.c @@ -1304,13 +1304,13 @@ static int ath10k_snoc_probe(struct platform_device *pdev) ar_snoc->ce.bus_ops = &ath10k_snoc_bus_ops; ar->ce_priv = &ar_snoc->ce; - ath10k_snoc_resource_init(ar); + ret = ath10k_snoc_resource_init(ar); if (ret) { ath10k_warn(ar, "failed to initialize resource: %d\n", ret); goto err_core_destroy; } - ath10k_snoc_setup_resource(ar); + ret = ath10k_snoc_setup_resource(ar); if (ret) { ath10k_warn(ar, "failed to setup resource: %d\n", ret); goto err_core_destroy; |