drm/exynos: remove unnecessary NULL assignment
authorJoonyoung Shim <jy0922.shim@samsung.com>
Wed, 16 Sep 2015 05:29:32 +0000 (14:29 +0900)
committerInki Dae <inki.dae@samsung.com>
Wed, 30 Sep 2015 07:39:40 +0000 (16:39 +0900)
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>
drivers/gpu/drm/exynos/exynos_drm_gem.c

index ce05f13..85aeae9 100644 (file)
@@ -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,