Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c40eea98 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by Linus Torvalds
Browse files

fb modedb: Refactor confusing mode_option assignment



Signed-off-by: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Cc: "Antonino A. Daplas" <adaplas@pol.net>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@linux-foundation.org>
parent 75e8b71d
Loading
Loading
Loading
Loading
+3 −1
Original line number Diff line number Diff line
@@ -510,7 +510,9 @@ int fb_find_mode(struct fb_var_screeninfo *var,
	default_bpp = 8;

    /* Did the user specify a video mode? */
    if (mode_option || (mode_option = fb_mode_option)) {
    if (!mode_option)
	mode_option = fb_mode_option;
    if (mode_option) {
	const char *name = mode_option;
	unsigned int namelen = strlen(name);
	int res_specified = 0, bpp_specified = 0, refresh_specified = 0;