drm/tests: helpers: Drop empty platform remove function

A remove callback just returning 0 is equivalent to no remove callback
at all. So drop the useless function.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
Reviewed-by: Maíra Canal <mcanal@igalia.com>
Signed-off-by: Maíra Canal <mairacanal@riseup.net>
Link: https://patchwork.freedesktop.org/patch/msgid/20230224221417.1712368-1-u.kleine-koenig@pengutronix.de
This commit is contained in:
Uwe Kleine-König 2023-02-24 23:14:17 +01:00 committed by Maíra Canal
parent 8ab3b0663e
commit 96c25b0314
No known key found for this signature in database
GPG Key ID: B02EE8FD76781ED5
1 changed files with 0 additions and 6 deletions

View File

@ -19,14 +19,8 @@ static int fake_probe(struct platform_device *pdev)
return 0;
}
static int fake_remove(struct platform_device *pdev)
{
return 0;
}
static struct platform_driver fake_platform_driver = {
.probe = fake_probe,
.remove = fake_remove,
.driver = {
.name = KUNIT_DEVICE_NAME,
},