From 96c25b03145aaa0d2900cebf0349f13a689b01ce Mon Sep 17 00:00:00 2001 From: =?utf8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Fri, 24 Feb 2023 23:14:17 +0100 Subject: [PATCH] drm/tests: helpers: Drop empty platform remove function MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Maíra Canal Signed-off-by: Maíra Canal Link: https://patchwork.freedesktop.org/patch/msgid/20230224221417.1712368-1-u.kleine-koenig@pengutronix.de --- drivers/gpu/drm/tests/drm_kunit_helpers.c | 6 ------ 1 file changed, 6 deletions(-) diff --git a/drivers/gpu/drm/tests/drm_kunit_helpers.c b/drivers/gpu/drm/tests/drm_kunit_helpers.c index e98b4150f556..4df47071dc88 100644 --- a/drivers/gpu/drm/tests/drm_kunit_helpers.c +++ b/drivers/gpu/drm/tests/drm_kunit_helpers.c @@ -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, }, -- 2.11.0