mirror of
https://github.com/adulau/aha.git
synced 2024-12-28 11:46:19 +00:00
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;
|
||||
|
||||
/* 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;
|
||||
|
|
Loading…
Reference in a new issue