drm/i915: Remove dead code
authorThierry Reding <treding@nvidia.com>
Fri, 21 Feb 2014 07:55:27 +0000 (08:55 +0100)
committerDaniel Vetter <daniel.vetter@ffwll.ch>
Tue, 4 Mar 2014 08:56:48 +0000 (09:56 +0100)
The i915 driver sets DRIVER_GEM unconditionally, so testing for the
feature will always fail.

Signed-off-by: Thierry Reding <treding@nvidia.com>
[danvet: Fix up conflicts.]
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/i915/i915_gem_context.c

index f8c21a6dd6635a599121baa73221819febb65762..da74522f377da13e339352ddd3d3c400265d04aa 100644 (file)
@@ -746,9 +746,6 @@ int i915_gem_context_create_ioctl(struct drm_device *dev, void *data,
        struct i915_hw_context *ctx;
        int ret;
 
-       if (!(dev->driver->driver_features & DRIVER_GEM))
-               return -ENODEV;
-
        if (!HAS_HW_CONTEXTS(dev))
                return -ENODEV;
 
@@ -775,9 +772,6 @@ int i915_gem_context_destroy_ioctl(struct drm_device *dev, void *data,
        struct i915_hw_context *ctx;
        int ret;
 
-       if (!(dev->driver->driver_features & DRIVER_GEM))
-               return -ENODEV;
-
        if (args->ctx_id == DEFAULT_CONTEXT_ID)
                return -ENOENT;