From: Thierry Reding Date: Thu, 16 Oct 2014 12:23:36 +0000 (+0200) Subject: drm/tegra: gem: Remove redundant drm_gem_free_mmap_offset() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=e55a8bd8ead046e5b7f78c321afc7594034257f9;p=GitHub%2FLineageOS%2Fandroid_kernel_motorola_exynos9610.git drm/tegra: gem: Remove redundant drm_gem_free_mmap_offset() The drm_gem_object_release() function already performs this cleanup, so there is no reason to do it explicitly. Signed-off-by: Thierry Reding --- diff --git a/drivers/gpu/drm/tegra/gem.c b/drivers/gpu/drm/tegra/gem.c index b1d778a7f3e7..a42d4c9a4d7d 100644 --- a/drivers/gpu/drm/tegra/gem.c +++ b/drivers/gpu/drm/tegra/gem.c @@ -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); }