Commit ec3b1ce2 authored by Uwe Kleine-König's avatar Uwe Kleine-König Committed by Kalle Valo
Browse files

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: default avatarUwe Kleine-König <u.kleine-koenig@pengutronix.de>
Signed-off-by: default avatarKalle Valo <quic_kvalo@quicinc.com>
Link: https://lore.kernel.org/r/20230601082556.2738446-2-u.kleine-koenig@pengutronix.de
parent 75bd32f5
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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;
}