diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2023-02-25 01:14:17 +0300 |
---|---|---|
committer | Maíra Canal <mairacanal@riseup.net> | 2023-03-09 17:17:08 +0300 |
commit | 96c25b03145aaa0d2900cebf0349f13a689b01ce (patch) | |
tree | dfb1b9b4299877a2c26ee6fbc995c9e67a11e2e6 /drivers/gpu/drm | |
parent | 8ab3b0663e279ab550bc2c0b5d602960e8b94e02 (diff) | |
download | linux-96c25b03145aaa0d2900cebf0349f13a689b01ce.tar.xz |
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
Diffstat (limited to 'drivers/gpu/drm')
-rw-r--r-- | drivers/gpu/drm/tests/drm_kunit_helpers.c | 6 |
1 files changed, 0 insertions, 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, }, |