aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/video
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/video')
-rw-r--r--drivers/video/modedb.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/drivers/video/modedb.c b/drivers/video/modedb.c
index 42f5d76a8777..8d81ef019c6c 100644
--- a/drivers/video/modedb.c
+++ b/drivers/video/modedb.c
@@ -510,7 +510,9 @@ int fb_find_mode(struct fb_var_screeninfo *var,
510 default_bpp = 8; 510 default_bpp = 8;
511 511
512 /* Did the user specify a video mode? */ 512 /* Did the user specify a video mode? */
513 if (mode_option || (mode_option = fb_mode_option)) { 513 if (!mode_option)
514 mode_option = fb_mode_option;
515 if (mode_option) {
514 const char *name = mode_option; 516 const char *name = mode_option;
515 unsigned int namelen = strlen(name); 517 unsigned int namelen = strlen(name);
516 int res_specified = 0, bpp_specified = 0, refresh_specified = 0; 518 int res_specified = 0, bpp_specified = 0, refresh_specified = 0;