Loading drivers/gpu/drm/drm_modes.c +11 −5 Original line number Diff line number Diff line Loading @@ -1230,7 +1230,7 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, unsigned int xres = 0, yres = 0, bpp = 32, refresh = 0; bool yres_specified = false, cvt = false, rb = false; bool interlace = false, margins = false, was_digit = false; int i; int i, err; enum drm_connector_force force = DRM_FORCE_UNSPECIFIED; #ifdef CONFIG_FB Loading @@ -1250,7 +1250,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, case '@': if (!refresh_specified && !bpp_specified && !yres_specified && !cvt && !rb && was_digit) { refresh = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &refresh); if (err) return false; refresh_specified = true; was_digit = false; } else Loading @@ -1259,7 +1261,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, case '-': if (!bpp_specified && !yres_specified && !cvt && !rb && was_digit) { bpp = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &bpp); if (err) return false; bpp_specified = true; was_digit = false; } else Loading @@ -1267,7 +1271,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, break; case 'x': if (!yres_specified && was_digit) { yres = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &yres); if (err) return false; yres_specified = true; was_digit = false; } else Loading Loading
drivers/gpu/drm/drm_modes.c +11 −5 Original line number Diff line number Diff line Loading @@ -1230,7 +1230,7 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, unsigned int xres = 0, yres = 0, bpp = 32, refresh = 0; bool yres_specified = false, cvt = false, rb = false; bool interlace = false, margins = false, was_digit = false; int i; int i, err; enum drm_connector_force force = DRM_FORCE_UNSPECIFIED; #ifdef CONFIG_FB Loading @@ -1250,7 +1250,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, case '@': if (!refresh_specified && !bpp_specified && !yres_specified && !cvt && !rb && was_digit) { refresh = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &refresh); if (err) return false; refresh_specified = true; was_digit = false; } else Loading @@ -1259,7 +1261,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, case '-': if (!bpp_specified && !yres_specified && !cvt && !rb && was_digit) { bpp = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &bpp); if (err) return false; bpp_specified = true; was_digit = false; } else Loading @@ -1267,7 +1271,9 @@ bool drm_mode_parse_command_line_for_connector(const char *mode_option, break; case 'x': if (!yres_specified && was_digit) { yres = simple_strtol(&name[i+1], NULL, 10); err = kstrtouint(&name[i + 1], 10, &yres); if (err) return false; yres_specified = true; was_digit = false; } else Loading