drm/tegra: gem: Remove redundant drm_gem_free_mmap_offset()
authorThierry Reding <treding@nvidia.com>
Thu, 16 Oct 2014 12:23:36 +0000 (14:23 +0200)
committerThierry Reding <treding@nvidia.com>
Thu, 13 Nov 2014 15:14:47 +0000 (16:14 +0100)
The drm_gem_object_release() function already performs this cleanup, so
there is no reason to do it explicitly.

Signed-off-by: Thierry Reding <treding@nvidia.com>
drivers/gpu/drm/tegra/gem.c

index b1d778a7f3e78fe2eef1b15f4a7b1f141f078595..a42d4c9a4d7dc8e7a1f122d2a89978858d160949 100644 (file)
@@ -247,9 +247,7 @@ void tegra_bo_free_object(struct drm_gem_object *gem)
                tegra_bo_destroy(gem->dev, bo);
        }
 
-       drm_gem_free_mmap_offset(gem);
        drm_gem_object_release(gem);
-
        kfree(bo);
 }