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>
main
Tobias Jakobi 2015-06-12 20:15:08 +02:00 committed by Emil Velikov
parent 8d8bbbb972
commit 53b1081da1
1 changed files with 1 additions and 2 deletions

View File

@ -254,7 +254,6 @@ struct g2d_context *g2d_init(int fd)
void g2d_fini(struct g2d_context *ctx) void g2d_fini(struct g2d_context *ctx)
{ {
if (ctx)
free(ctx); free(ctx);
} }