[PATCH 2/2] fbcon: Change return value type to void
From: oushixiong1025
Date: Tue Mar 11 2025 - 07:30:03 EST
From: Shixiong Ou <oushixiong@xxxxxxxxxx>
fbcon_init_device() doesn't need to return a value.
Signed-off-by: Shixiong Ou <oushixiong@xxxxxxxxxx>
---
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