aboutsummaryrefslogtreecommitdiffstats
path: root/exynos
diff options
context:
space:
mode:
authorTobias Jakobi2015-06-12 13:15:08 -0500
committerEmil Velikov2015-06-29 13:19:23 -0500
commit53b1081da1b05e6225d93d4a6890fba4eba8313e (patch)
tree12f10e2d41530551936b73e29aa863a37d1c2bae /exynos
parent8d8bbbb9722c3eed3e2736da95d2fef4613d97fb (diff)
downloadexternal-libgbm-53b1081da1b05e6225d93d4a6890fba4eba8313e.tar.gz
external-libgbm-53b1081da1b05e6225d93d4a6890fba4eba8313e.tar.xz
external-libgbm-53b1081da1b05e6225d93d4a6890fba4eba8313e.zip
exynos/fimg2d: simplify g2d_fini()
free()ing a nullptr is a noop, so remove the check. Signed-off-by: Tobias Jakobi <tjakobi@math.uni-bielefeld.de> Acked-by: Emil Velikov <emil.l.velikov@gmail.com>
Diffstat (limited to 'exynos')
-rw-r--r--exynos/exynos_fimg2d.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/exynos/exynos_fimg2d.c b/exynos/exynos_fimg2d.c
index 5ea42e69..24a06d0f 100644
--- a/exynos/exynos_fimg2d.c
+++ b/exynos/exynos_fimg2d.c
@@ -254,8 +254,7 @@ struct g2d_context *g2d_init(int fd)
254 254
255void g2d_fini(struct g2d_context *ctx) 255void g2d_fini(struct g2d_context *ctx)
256{ 256{
257 if (ctx) 257 free(ctx);
258 free(ctx);
259} 258}
260 259
261/** 260/**