drm/exynos: Remove redundant NULL check in exynos_drm_buf
authorSachin Kamat <sachin.kamat@linaro.org>
Wed, 14 Aug 2013 11:08:00 +0000 (16:38 +0530)
committerInki Dae <inki.dae@samsung.com>
Thu, 5 Sep 2013 04:43:42 +0000 (13:43 +0900)
kfree handles null pointers. Hence this check is not necessary.

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Inki Dae <inki.dae@samsung.com>
drivers/gpu/drm/exynos/exynos_drm_buf.c

index b8ac06d92fbff74cb66141eaf1a2d148689d6400..7f489e7330fe39f3c3ff9367a07fdc77929df69f 100644 (file)
@@ -161,11 +161,6 @@ struct exynos_drm_gem_buf *exynos_drm_init_buf(struct drm_device *dev,
 void exynos_drm_fini_buf(struct drm_device *dev,
                                struct exynos_drm_gem_buf *buffer)
 {
-       if (!buffer) {
-               DRM_DEBUG_KMS("buffer is null.\n");
-               return;
-       }
-
        kfree(buffer);
        buffer = NULL;
 }