Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c7829b29 authored by Thierry Reding's avatar Thierry Reding Committed by Patrik Jakobsson
Browse files

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: default avatarThierry Reding <treding@nvidia.com>
Signed-off-by: default avatarPatrik Jakobsson <patrik.r.jakobsson@gmail.com>
parent c269c685
Loading
Loading
Loading
Loading
+0 −3
Original line number Original line Diff line number Diff line
@@ -62,9 +62,6 @@ int psb_gem_dumb_map_gtt(struct drm_file *file, struct drm_device *dev,
	int ret = 0;
	int ret = 0;
	struct drm_gem_object *obj;
	struct drm_gem_object *obj;


	if (!(dev->driver->driver_features & DRIVER_GEM))
		return -ENODEV;

	mutex_lock(&dev->struct_mutex);
	mutex_lock(&dev->struct_mutex);


	/* GEM does all our handle to object mapping */
	/* GEM does all our handle to object mapping */