Skip to contentSkip to conversation

drm/gem: remove unused variable in drm_gem_cma_prime_mmap

PATCH New Arnd Bergmann 1 participant 1 message Nov 3, 2015

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 drm/gem: remove unused variable in drm_gem_cma_prime_mmap

Now that the mutex is no longer used in drm_gem_cma_prime_mmap, the 'dev' variable is not referenced either, which gcc warns about:

drivers/gpu/drm/drm_gem_cma_helper.c:484:21: warning: unused variable 'dev'

This removes it too.

Fixes 4e270f088011 ("drm/gem: Drop struct_mutex requirement from drm_gem_mmap_obj")

---
Currently in drm-next, warning found on yesterday's linux-next with ARM randconfig builds

drivers/gpu/drm/drm_gem_cma_helper.c +0 -1
index 4fb4c45d039f..e109b49cd25d 100644
@@ -481,7 +481,6 @@ int drm_gem_cma_prime_mmap(struct drm_gem_object *obj,
 			   struct vm_area_struct *vma)
 {
 	struct drm_gem_cma_object *cma_obj;
-	struct drm_device *dev = obj->dev;
 	int ret;
 
 	ret = drm_gem_mmap_obj(obj, obj->size, vma);