drm/gma500: Remove dead code
authorThierry Reding <treding@nvidia.com>
Fri, 21 Feb 2014 07:55:25 +0000 (08:55 +0100)
committerPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
Mon, 17 Mar 2014 19:12:02 +0000 (20:12 +0100)
The gma500 driver sets DRIVER_GEM unconditionally, so testing for the
absence of the feature will always fail.

Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Patrik Jakobsson <patrik.r.jakobsson@gmail.com>
drivers/gpu/drm/gma500/gem.c

index d0243c08827293fe98ced8486913051d2c9fbdbc..c707fa6fca85bac195b824c7dcdb885074161f9a 100644 (file)
@@ -62,9 +62,6 @@ int psb_gem_dumb_map_gtt(struct drm_file *file, struct drm_device *dev,
        int ret = 0;
        struct drm_gem_object *obj;
 
-       if (!(dev->driver->driver_features & DRIVER_GEM))
-               return -ENODEV;
-
        mutex_lock(&dev->struct_mutex);
 
        /* GEM does all our handle to object mapping */