drm/cma: Remove call to drm_gem_free_mmap_offset()
authorThierry Reding <treding@nvidia.com>
Thu, 6 Nov 2014 13:07:14 +0000 (14:07 +0100)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 12:27:33 +0000 (13:27 +0100)
drm_gem_object_release() called later in the drm_gem_cma_free_object()
function already calls this, so there's no need to do this explicitly.

Reviewed-by: Daniel Vetter <daniel.vetter@ffwll.ch>
Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/drm_gem_cma_helper.c

index 864b0863d042e237caa75fb2697f1414cbdebbc6..e419eedf751de6cb4c3f0b64b88dcd771cf594bc 100644 (file)
@@ -187,8 +187,6 @@ void drm_gem_cma_free_object(struct drm_gem_object *gem_obj)
 {
        struct drm_gem_cma_object *cma_obj;
 
-       drm_gem_free_mmap_offset(gem_obj);
-
        cma_obj = to_drm_gem_cma_obj(gem_obj);
 
        if (cma_obj->vaddr) {