[PATCH] fbdev: efifb: Change the return value type to void

oushixiong1025@163.com posted 1 patch 1 year, 1 month ago
drivers/video/fbdev/efifb.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
[PATCH] fbdev: efifb: Change the return value type to void
Posted by oushixiong1025@163.com 1 year, 1 month ago
From: Shixiong Ou <oushixiong@kylinos.cn>

efifb_setup() doesn't need to return a value.

Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
---
 drivers/video/fbdev/efifb.c | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/drivers/video/fbdev/efifb.c b/drivers/video/fbdev/efifb.c
index 20517448487e..0e1bd3dba255 100644
--- a/drivers/video/fbdev/efifb.c
+++ b/drivers/video/fbdev/efifb.c
@@ -275,7 +275,7 @@ static const struct fb_ops efifb_ops = {
 	.fb_setcolreg	= efifb_setcolreg,
 };
 
-static int efifb_setup(struct screen_info *si, char *options)
+static void efifb_setup(struct screen_info *si, char *options)
 {
 	char *this_opt;
 
@@ -299,8 +299,6 @@ static int efifb_setup(struct screen_info *si, char *options)
 				use_bgrt = false;
 		}
 	}
-
-	return 0;
 }
 
 static inline bool fb_base_is_valid(struct screen_info *si)
-- 
2.25.1
Re: [PATCH] fbdev: efifb: Change the return value type to void
Posted by Helge Deller 1 year, 1 month ago
On 1/3/25 04:26, oushixiong1025@163.com wrote:
> From: Shixiong Ou <oushixiong@kylinos.cn>
>
> efifb_setup() doesn't need to return a value.
>
> Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>

applied.

Thanks!
Helge