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>
This commit is contained in:
committed by
Dave Airlie
parent
a33a052f19
commit
7781de7456
@@ -1461,7 +1461,7 @@ int drm_mode_setcrtc(struct drm_device *dev, void *data,
|
|||||||
goto out;
|
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",
|
DRM_DEBUG("Count connectors is %d but no mode or fb set\n",
|
||||||
crtc_req->count_connectors);
|
crtc_req->count_connectors);
|
||||||
ret = -EINVAL;
|
ret = -EINVAL;
|
||||||
|
Reference in New Issue
Block a user