]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
fbdev: efifb: Change the return value type to void
authorShixiong Ou <oushixiong@kylinos.cn>
Fri, 3 Jan 2025 03:26:33 +0000 (11:26 +0800)
committerHelge Deller <deller@gmx.de>
Wed, 8 Jan 2025 23:29:42 +0000 (00:29 +0100)
efifb_setup() doesn't need to return a value.

Signed-off-by: Shixiong Ou <oushixiong@kylinos.cn>
Signed-off-by: Helge Deller <deller@gmx.de>
drivers/video/fbdev/efifb.c

index 20517448487e733edc217c3ed5c995d232be49a5..0e1bd3dba25549abeaf06ed41c8c06193c6579e4 100644 (file)
@@ -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)