diff options
author | Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com> | 2007-10-18 10:04:36 (GMT) |
---|---|---|
committer | Linus Torvalds <torvalds@woody.linux-foundation.org> | 2007-10-18 21:37:17 (GMT) |
commit | c40eea98cd723ac8942ed2db39c30182c0c928c7 (patch) | |
tree | e20fd48d07faf220be72db779d7922cdeee057da /drivers/video | |
parent | 75e8b71d559632dd70c9799ea8b5c133a2ddcea9 (diff) | |
download | linux-fsl-qoriq-c40eea98cd723ac8942ed2db39c30182c0c928c7.tar.xz |
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>
Diffstat (limited to 'drivers/video')
-rw-r--r-- | drivers/video/modedb.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c index 42f5d76..8d81ef0 100644 --- a/drivers/video/modedb.c +++ b/drivers/video/modedb.c @@ -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; |