ACPI / APEI: remove unnecessary platform_set_drvdata()
PATCH 1/1 ACPI / APEI: remove unnecessary platform_set_drvdata()
The driver core clears the driver data to NULL after device_release or on probe failure. Thus, it is not needed to manually clear the device driver data to NULL.
Signed-off-by Jingoo Han <[email protected]>
--- drivers/acpi/apei/ghes.c | 2 -- 1 file changed, 2 deletions(-)
drivers/acpi/apei/ghes.c +0 -2
@@ -1044,8 +1044,6 @@ static int ghes_remove(struct platform_device *ghes_dev)kfree (ghes); -platform_set_drvdata (ghes_dev,NULL ); -return 0 ; }
Signature · 1 line
1.7.10.4