mirror of
https://github.com/linux-msm/laptops-kernel.git
synced 2026-08-13 14:19:53 -07:00
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:
1 parent
8ab3b0663e
commit
96c25b0314
1 file changed
-6
@@ -19,14 +19,8 @@ static int fake_probe(struct platform_device *pdev)
|
|||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
static int fake_remove(struct platform_device *pdev)
|
|
||||||
{
|
|
||||||
return 0;
|
|
||||||
}
|
|
||||||
|
|
||||||
static struct platform_driver fake_platform_driver = {
|
static struct platform_driver fake_platform_driver = {
|
||||||
.probe = fake_probe,
|
.probe = fake_probe,
|
||||||
.remove = fake_remove,
|
|
||||||
.driver = {
|
.driver = {
|
||||||
.name = KUNIT_DEVICE_NAME,
|
.name = KUNIT_DEVICE_NAME,
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user