From: Jakob Bornecrantz Date: Mon, 3 Aug 2009 12:43:58 +0000 (+0100) Subject: drm: Small logic fix in drm_mode_setcrtc X-Git-Tag: v2.6.31-rc6~71^2~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=7781de74568bddfefbd2d32a934a8c791a2420cd;p=profile%2Fcommon%2Fkernel-common.git drm: Small logic fix in drm_mode_setcrtc Match the logic to the comments in the debug message Signed-off-by: Jakob Bornecrantz Signed-off-by: Dave Airlie --- diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c index 8fab789..33be210 100644 --- a/drivers/gpu/drm/drm_crtc.c +++ b/drivers/gpu/drm/drm_crtc.c @@ -1461,7 +1461,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data, goto out; } - if (crtc_req->count_connectors > 0 && !mode && !fb) { + if (crtc_req->count_connectors > 0 && (!mode || !fb)) { DRM_DEBUG("Count connectors is %d but no mode or fb set\n", crtc_req->count_connectors); ret = -EINVAL;