summaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/solomon/ssd130x-i2c.c
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2022-04-25 22:23:06 +0300
committerJavier Martinez Canillas <javierm@redhat.com>2022-04-26 10:43:37 +0300
commita4359b4e479bfa947a20a1ac5d406dae654f8a54 (patch)
tree2745b6dfccfcb4fa60f5c9c9fa93f54070dbfc82 /drivers/gpu/drm/solomon/ssd130x-i2c.c
parent57e6f0562cb40d54dbe030f94c6307665b69a594 (diff)
downloadlinux-a4359b4e479bfa947a20a1ac5d406dae654f8a54.tar.xz
drm/ssd130x: Make ssd130x_remove() return void
This function returns zero unconditionally, so there isn't any benefit of returning a value. Make it return void to be able to see at a glance that the return value of ssd130x_i2c_remove() is always zero. This patch is a preparation for making i2c remove callbacks return void. Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Acked-by: Javier Martinez Canillas <javierm@redhat.com> Signed-off-by: Javier Martinez Canillas <javierm@redhat.com> Link: https://patchwork.freedesktop.org/patch/msgid/20220425192306.59800-1-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/gpu/drm/solomon/ssd130x-i2c.c')
-rw-r--r--drivers/gpu/drm/solomon/ssd130x-i2c.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/gpu/drm/solomon/ssd130x-i2c.c b/drivers/gpu/drm/solomon/ssd130x-i2c.c
index d6835ec71c39..1e0fcec7be47 100644
--- a/drivers/gpu/drm/solomon/ssd130x-i2c.c
+++ b/drivers/gpu/drm/solomon/ssd130x-i2c.c
@@ -43,7 +43,9 @@ static int ssd130x_i2c_remove(struct i2c_client *client)
{
struct ssd130x_device *ssd130x = i2c_get_clientdata(client);
- return ssd130x_remove(ssd130x);
+ ssd130x_remove(ssd130x);
+
+ return 0;
}
static void ssd130x_i2c_shutdown(struct i2c_client *client)