diff options
author | 2023-02-24 23:14:17 +0100 | |
---|---|---|
committer | 2023-03-09 11:17:08 -0300 | |
commit | 96c25b03145aaa0d2900cebf0349f13a689b01ce (patch) | |
tree | dfb1b9b4299877a2c26ee6fbc995c9e67a11e2e6 | |
parent | drm/ttm: Don't print error message if eviction was interrupted (diff) | |
download | wireguard-linux-96c25b03145aaa0d2900cebf0349f13a689b01ce.tar.xz wireguard-linux-96c25b03145aaa0d2900cebf0349f13a689b01ce.zip |
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
-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, }, |