Skip to contentSkip to conversation

drm/gma500: Remove dead code

PATCH New Patrik Jakobsson 1 participant 1 message Mar 17, 2014

Subsystems (3)
lore
Share & tools
lore

Patrik Jakobsson

author maintainer
#0 lore raw

PATCH 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.

---
 drivers/gpu/drm/gma500/gem.c | 3 ---
 1 file changed, 3 deletions(-)
drivers/gpu/drm/gma500/gem.c +0 -3
index d0243c0..c707fa6 100644
@@ -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