All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH 1/4] drm/exynos: remove unnecessary NULL assignment
@ 2015-09-16  5:29 Joonyoung Shim
  2015-09-16  5:29 ` [PATCH 2/4] drm/exynos: staticize exynos_drm_gem_init() Joonyoung Shim
                   ` (3 more replies)
  0 siblings, 4 replies; 8+ messages in thread
From: Joonyoung Shim @ 2015-09-16  5:29 UTC (permalink / raw)
  To: dri-devel; +Cc: sw0312.kim

They will be freed right or was freed already, so NULL assignment is
unnecessary.

Signed-off-by: Joonyoung Shim <jy0922.shim@samsung.com>
---
 drivers/gpu/drm/exynos/exynos_drm_gem.c | 3 ---
 1 file changed, 3 deletions(-)

diff --git a/drivers/gpu/drm/exynos/exynos_drm_gem.c b/drivers/gpu/drm/exynos/exynos_drm_gem.c
index f12fbc3..8dce40d 100644
--- a/drivers/gpu/drm/exynos/exynos_drm_gem.c
+++ b/drivers/gpu/drm/exynos/exynos_drm_gem.c
@@ -117,8 +117,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 @@ out:
 	drm_gem_object_release(obj);
 
 	kfree(exynos_gem_obj);
-	exynos_gem_obj = NULL;
 }
 
 unsigned long exynos_drm_gem_get_size(struct drm_device *dev,
-- 
1.9.1

_______________________________________________
dri-devel mailing list
dri-devel@lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/dri-devel

^ permalink raw reply related	[flat|nested] 8+ messages in thread

end of thread, other threads:[~2015-09-21 18:26 UTC | newest]

Thread overview: 8+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-09-16  5:29 [PATCH 1/4] drm/exynos: remove unnecessary NULL assignment Joonyoung Shim
2015-09-16  5:29 ` [PATCH 2/4] drm/exynos: staticize exynos_drm_gem_init() Joonyoung Shim
2015-09-21 16:10   ` Gustavo Padovan
2015-09-16  5:29 ` [PATCH 3/4] drm/exynos: cleanup function calling written twice Joonyoung Shim
2015-09-21 18:26   ` Gustavo Padovan
2015-09-16  5:29 ` [PATCH 4/4] drm/exynos: cleanup line feed in exynos_drm_gem_get_ioctl Joonyoung Shim
2015-09-21 18:26   ` Gustavo Padovan
2015-09-21 16:10 ` [PATCH 1/4] drm/exynos: remove unnecessary NULL assignment Gustavo Padovan

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.