fb modedb: Refactor confusing mode_option assignment
Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> Cc: "Antonino A. Daplas" <adaplas@pol.net> Signed-off-by: Andrew Morton <akpm@linux-foundation.org> Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
This commit is contained in:
parent
75e8b71d55
commit
c40eea98cd
1 changed files with 3 additions and 1 deletions
|
@ -510,7 +510,9 @@ int fb_find_mode(struct fb_var_screeninfo *var,
|
||||||
default_bpp = 8;
|
default_bpp = 8;
|
||||||
|
|
||||||
/* Did the user specify a video mode? */
|
/* 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;
|
const char *name = mode_option;
|
||||||
unsigned int namelen = strlen(name);
|
unsigned int namelen = strlen(name);
|
||||||
int res_specified = 0, bpp_specified = 0, refresh_specified = 0;
|
int res_specified = 0, bpp_specified = 0, refresh_specified = 0;
|
||||||
|
|
Loading…
Add table
Reference in a new issue