From: Roel Kluin Date: Thu, 31 Dec 2009 12:06:29 +0000 (+0100) Subject: drm/kms: Fix &&/|| confusion in drm_fb_helper_connector_parse_command_line() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e89a8c901ca94a47c0e0b2fb335623d810e37545;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git drm/kms: Fix &&/|| confusion in drm_fb_helper_connector_parse_command_line() This always evaluates to true. Signed-off-by: Roel Kluin Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_fb_helper.c b/drivers/gpu/drm/drm_fb_helper.c index 1b49fa055f4f..100ee48760b7 100644 --- a/drivers/gpu/drm/drm_fb_helper.c +++ b/drivers/gpu/drm/drm_fb_helper.c @@ -156,7 +156,7 @@ static bool drm_fb_helper_connector_parse_command_line(struct drm_connector *con force = DRM_FORCE_ON; break; case 'D': - if ((connector->connector_type != DRM_MODE_CONNECTOR_DVII) || + if ((connector->connector_type != DRM_MODE_CONNECTOR_DVII) && (connector->connector_type != DRM_MODE_CONNECTOR_HDMIB)) force = DRM_FORCE_ON; else