drm/gma500: Remove dead code
Subsystems (3)
Patrik Jakobsson
maintainerPATCH 9/16 drm/gma500: Remove dead code
From: Thierry Reding <[email protected]>
The gma500 driver sets DRIVER_GEM unconditionally, so testing for the absence of the feature will always fail.
Signed-off-by Thierry Reding <[email protected]>
Signed-off-by Patrik Jakobsson <[email protected]>
--- drivers/gpu/drm/gma500/gem.c | 3 --- 1 file changed, 3 deletions(-)
drivers/gpu/drm/gma500/gem.c +0 -3
@@ -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 */
Signature · 1 line
1.8.1.2