Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 7781de74 authored by Jakob Bornecrantz's avatar Jakob Bornecrantz Committed by Dave Airlie
Browse files

drm: Small logic fix in drm_mode_setcrtc



Match the logic to the comments in the debug message

Signed-off-by: default avatarJakob Bornecrantz <jakob@vmware.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent a33a052f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;