diff options
author | Ville Syrjälä <ville.syrjala@linux.intel.com> | 2013-10-17 13:35:03 +0300 |
---|---|---|
committer | Dave Airlie <airlied@redhat.com> | 2013-11-06 13:25:19 +1000 |
commit | 3f2c20572ac6164ba3ce6f4e92bf9d5abe1543ac (patch) | |
tree | ad496803ba0bbe38d64030d7c0cede6ab922d3f9 /drivers/gpu/drm/i915/intel_sprite.c | |
parent | 4f224661096ca0d945324d661cf7c897ac6eb8e7 (diff) | |
download | blackbird-obmc-linux-3f2c20572ac6164ba3ce6f4e92bf9d5abe1543ac.tar.gz blackbird-obmc-linux-3f2c20572ac6164ba3ce6f4e92bf9d5abe1543ac.zip |
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: Ville Syrjälä <ville.syrjala@linux.intel.com>
Signed-off-by: Dave Airlie <airlied@redhat.com>
Diffstat (limited to 'drivers/gpu/drm/i915/intel_sprite.c')
-rw-r--r-- | drivers/gpu/drm/i915/intel_sprite.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/gpu/drm/i915/intel_sprite.c b/drivers/gpu/drm/i915/intel_sprite.c index 8afaad6bcc48..07b13dcb7fde 100644 --- a/drivers/gpu/drm/i915/intel_sprite.c +++ b/drivers/gpu/drm/i915/intel_sprite.c @@ -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); if (!obj) { - ret = -EINVAL; + ret = -ENOENT; goto out_unlock; } @@ -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); if (!obj) { - ret = -EINVAL; + ret = -ENOENT; goto out_unlock; } |