projects
/
platform
/
upstream
/
libdrm.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
8d8bbbb
)
exynos/fimg2d: simplify g2d_fini()
author
Tobias Jakobi
<tjakobi@math.uni-bielefeld.de>
Fri, 12 Jun 2015 18:15:08 +0000
(20:15 +0200)
committer
Emil Velikov
<emil.l.velikov@gmail.com>
Mon, 29 Jun 2015 18:19:23 +0000
(19:19 +0100)
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>
exynos/exynos_fimg2d.c
patch
|
blob
|
history
diff --git
a/exynos/exynos_fimg2d.c
b/exynos/exynos_fimg2d.c
index 5ea42e69fa892471680b4d8c18b75fa0a1020f4a..24a06d0feeb7df063da87e3ea5045d909eb26691 100644
(file)
--- a/
exynos/exynos_fimg2d.c
+++ b/
exynos/exynos_fimg2d.c
@@
-254,8
+254,7
@@
struct g2d_context *g2d_init(int fd)
void g2d_fini(struct g2d_context *ctx)
{
- if (ctx)
- free(ctx);
+ free(ctx);
}
/**