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-Tag: v3.19-rc1~73^2~61^2~15 X-Git-Url: https://git.karo-electronics.de/?a=commitdiff_plain;h=e55a8bd8ead046e5b7f78c321afc7594034257f9;p=karo-tx-linux.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); }