aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/drm_crtc.c
diff options
context:
space:
mode:
authorJakob Bornecrantz <jakob@vmware.com>2009-08-03 13:43:58 +0100
committerDave Airlie <airlied@redhat.com>2009-08-04 13:29:27 +1000
commit7781de74568bddfefbd2d32a934a8c791a2420cd (patch)
treefda7b289d12e41e144de5032cca439ce245929fb /drivers/gpu/drm/drm_crtc.c
parentMerge branch 'for-linus' of git://neil.brown.name/md (diff)
downloadlinux-dev-7781de74568bddfefbd2d32a934a8c791a2420cd.tar.xz
linux-dev-7781de74568bddfefbd2d32a934a8c791a2420cd.zip
drm: Small logic fix in drm_mode_setcrtc
Match the logic to the comments in the debug message Signed-off-by: Jakob Bornecrantz <jakob@vmware.com> Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to '')
-rw-r--r--drivers/gpu/drm/drm_crtc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/drm/drm_crtc.c b/drivers/gpu/drm/drm_crtc.c
index 8fab7890a363..33be210d6723 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;