Skip to content

Commit 021e111

Browse files
Shixiong Ouhdeller
authored andcommitted
fbdev: efifb: Change the return value type to void
efifb_setup() doesn't need to return a value. Signed-off-by: Shixiong Ou <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent bec7368 commit 021e111

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

drivers/video/fbdev/efifb.c

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -275,7 +275,7 @@ static const struct fb_ops efifb_ops = {
275275
.fb_setcolreg = efifb_setcolreg,
276276
};
277277

278-
static int efifb_setup(struct screen_info *si, char *options)
278+
static void efifb_setup(struct screen_info *si, char *options)
279279
{
280280
char *this_opt;
281281

@@ -299,8 +299,6 @@ static int efifb_setup(struct screen_info *si, char *options)
299299
use_bgrt = false;
300300
}
301301
}
302-
303-
return 0;
304302
}
305303

306304
static inline bool fb_base_is_valid(struct screen_info *si)

0 commit comments

Comments
 (0)