[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20250311112856.1020095-2-oushixiong1025@163.com>
Date: Tue, 11 Mar 2025 19:28:56 +0800
From: oushixiong1025@....com
To: Simona Vetter <simona@...ll.ch>
Cc: Helge Deller <deller@....de>,
Thomas Zimmermann <tzimmermann@...e.de>,
Samuel Thibault <samuel.thibault@...-lyon.org>,
Zsolt Kajtar <soci@....rulez.org>,
linux-fbdev@...r.kernel.org,
dri-devel@...ts.freedesktop.org,
linux-kernel@...r.kernel.org,
Shixiong Ou <oushixiong@...inos.cn>
Subject: [PATCH 2/2] fbcon: Change return value type to void
From: Shixiong Ou <oushixiong@...inos.cn>
fbcon_init_device() doesn't need to return a value.
Signed-off-by: Shixiong Ou <oushixiong@...inos.cn>
---
drivers/video/fbdev/core/fbcon.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/drivers/video/fbdev/core/fbcon.c b/drivers/video/fbdev/core/fbcon.c
index 51c3e8a5a092..c1692b68f69e 100644
--- a/drivers/video/fbdev/core/fbcon.c
+++ b/drivers/video/fbdev/core/fbcon.c
@@ -3296,7 +3296,7 @@ static const struct attribute_group fbcon_device_attr_group = {
.attrs = fbcon_device_attrs,
};
-static int fbcon_init_device(void)
+static void fbcon_init_device(void)
{
int ret;
@@ -3305,8 +3305,6 @@ static int fbcon_init_device(void)
ret = device_add_group(fbcon_device, &fbcon_device_attr_group);
if (ret)
fbcon_has_sysfs = 0;
-
- return 0;
}
#ifdef CONFIG_FRAMEBUFFER_CONSOLE_DEFERRED_TAKEOVER
--
2.25.1
Powered by blists - more mailing lists