Commit 3f2c2057 authored by Ville Syrjälä's avatar Ville Syrjälä Committed by Dave Airlie

drm/i915: Return -ENOENT when a mode object can't be found

Let's be a bit more consistent with our error values.
Signed-off-by: default avatarVille Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: default avatarDave Airlie <airlied@redhat.com>
parent 4f224661
...@@ -9819,7 +9819,7 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data, ...@@ -9819,7 +9819,7 @@ int intel_get_pipe_from_crtc_id(struct drm_device *dev, void *data,
if (!drmmode_obj) { if (!drmmode_obj) {
DRM_ERROR("no such CRTC id\n"); DRM_ERROR("no such CRTC id\n");
return -EINVAL; return -ENOENT;
} }
crtc = to_intel_crtc(obj_to_crtc(drmmode_obj)); crtc = to_intel_crtc(obj_to_crtc(drmmode_obj));
......
...@@ -955,7 +955,7 @@ int intel_sprite_set_colorkey(struct drm_device *dev, void *data, ...@@ -955,7 +955,7 @@ int intel_sprite_set_colorkey(struct drm_device *dev, void *data,
obj = drm_mode_object_find(dev, set->plane_id, DRM_MODE_OBJECT_PLANE); obj = drm_mode_object_find(dev, set->plane_id, DRM_MODE_OBJECT_PLANE);
if (!obj) { if (!obj) {
ret = -EINVAL; ret = -ENOENT;
goto out_unlock; goto out_unlock;
} }
...@@ -984,7 +984,7 @@ int intel_sprite_get_colorkey(struct drm_device *dev, void *data, ...@@ -984,7 +984,7 @@ int intel_sprite_get_colorkey(struct drm_device *dev, void *data,
obj = drm_mode_object_find(dev, get->plane_id, DRM_MODE_OBJECT_PLANE); obj = drm_mode_object_find(dev, get->plane_id, DRM_MODE_OBJECT_PLANE);
if (!obj) { if (!obj) {
ret = -EINVAL; ret = -ENOENT;
goto out_unlock; goto out_unlock;
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment