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
parent
8d8bbbb972
commit
53b1081da1
|
@ -254,8 +254,7 @@ 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);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue