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
This commit is contained in:
Uwe Kleine-König
2023-06-01 10:25:53 +02:00
committed by Kalle Valo
parent 75bd32f5ce
commit ec3b1ce2ca

View File

@@ -816,7 +816,6 @@ static int ath10k_ahb_probe(struct platform_device *pdev)
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;
}