diff options
author | Joonyoung Shim <jy0922.shim@samsung.com> | 2015-09-16 14:29:32 +0900 |
---|---|---|
committer | Inki Dae <inki.dae@samsung.com> | 2015-09-30 16:39:40 +0900 |
commit | 0269b1a17f8f887c02ae37affef884e1ffda3df6 (patch) | |
tree | fbf91218274d8543a53540f1d27ad34bccbb83b8 | |
parent | 7c93537a47e15e04064158ccdbe28f88ee61170c (diff) | |
download | op-kernel-dev-0269b1a17f8f887c02ae37affef884e1ffda3df6.zip op-kernel-dev-0269b1a17f8f887c02ae37affef884e1ffda3df6.tar.gz |
drm/exynos: remove unnecessary NULL assignment
They will be freed right or was freed already, so NULL assignment is
unnecessary.
Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
-rw-r--r-- | drivers/gpu/drm/exynos/exynos_drm_gem.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c index ce05f13..85aeae9 100644 --- a/drivers/gpu/drm/exynos/exynos_drm_gem.c +++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c @@ -118,8 +118,6 @@ static void exynos_drm_free_buf(struct exynos_drm_gem_obj *obj) } else dma_free_attrs(dev->dev, obj->size, obj->pages, (dma_addr_t)obj->dma_addr, &obj->dma_attrs); - - obj->dma_addr = (dma_addr_t)NULL; } static int exynos_drm_gem_handle_create(struct drm_gem_object *obj, @@ -167,7 +165,6 @@ void exynos_drm_gem_destroy(struct exynos_drm_gem_obj *exynos_gem_obj) drm_gem_object_release(obj); kfree(exynos_gem_obj); - exynos_gem_obj = NULL; } unsigned long exynos_drm_gem_get_size(struct drm_device *dev, |