summaryrefslogtreecommitdiff
path: root/drivers/net
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-06-01 11:25:53 +0300
committerKalle Valo <quic_kvalo@quicinc.com>2023-06-09 15:27:57 +0300
commitec3b1ce2ca347b4b0a7cd5d1b69c316840202df3 (patch)
treecf0e381b46b5df6993d084682586edb8a11fb254 /drivers/net
parent75bd32f5ce94bc365ba0b9b68bcf9de84a391d37 (diff)
downloadlinux-ec3b1ce2ca347b4b0a7cd5d1b69c316840202df3.tar.xz
wifi: ath10k: Drop cleaning of driver data from probe error path and remove
The driver core cares for resetting driver data if probe fails and after remove. So drop the explicit and duplicate cleanup in the driver's functions. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230601082556.2738446-2-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/net')
-rw-r--r--drivers/net/wireless/ath/ath10k/ahb.c3
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c
index f0c615fa5614..7bb45c66cff7 100644
--- a/drivers/net/wireless/ath/ath10k/ahb.c
+++ b/drivers/net/wireless/ath/ath10k/ahb.c
@@ -816,7 +816,6 @@ err_resource_deinit:
err_core_destroy:
ath10k_core_destroy(ar);
- platform_set_drvdata(pdev, NULL);
return ret;
}
@@ -845,8 +844,6 @@ static int ath10k_ahb_remove(struct platform_device *pdev)
ath10k_ahb_resource_deinit(ar);
ath10k_core_destroy(ar);
- platform_set_drvdata(pdev, NULL);
-
return 0;
}