瀏覽代碼

drm/gma500: Remove dead code

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>
Thierry Reding 12 年之前
父節點
當前提交
c7829b29e9
共有 1 個文件被更改,包括 0 次插入3 次删除
  1. 0 3
      drivers/gpu/drm/gma500/gem.c

+ 0 - 3
drivers/gpu/drm/gma500/gem.c

@@ -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 */