Skip to content

Commit

Permalink
drm/gma500: Remove dead code
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Thierry Reding authored and Patrik Jakobsson committed Mar 17, 2014
1 parent c269c68 commit c7829b2
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions drivers/gpu/drm/gma500/gem.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down

0 comments on commit c7829b2

Please sign in to comment.