projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4b20e4
)
drm/omap: use kzalloc in sita_init()
author
Rasmus Villemoes
<linux@rasmusvillemoes.dk>
Tue, 15 Dec 2015 11:20:53 +0000
(12:20 +0100)
committer
Daniel Vetter
<daniel.vetter@ffwll.ch>
Tue, 15 Dec 2015 12:37:06 +0000
(13:37 +0100)
Signed-off-by: Rasmus Villemoes <linux@rasmusvillemoes.dk>
Signed-off-by: Thierry Reding <treding@nvidia.com>
Signed-off-by: Boris Brezillon <boris.brezillon@free-electrons.com>
Link:
http://patchwork.freedesktop.org/patch/msgid/1450178476-26284-6-git-send-email-boris.brezillon@free-electrons.com
Signed-off-by: Daniel Vetter <daniel.vetter@ffwll.ch>
drivers/gpu/drm/omapdrm/tcm-sita.c
patch
|
blob
|
history
diff --git
a/drivers/gpu/drm/omapdrm/tcm-sita.c
b/drivers/gpu/drm/omapdrm/tcm-sita.c
index efb609510540f7d29fe7df911c2f3e6894a6d023..6df1f2a1bc52030b07f7ffde4f3491e55ff1d9bb 100644
(file)
--- a/
drivers/gpu/drm/omapdrm/tcm-sita.c
+++ b/
drivers/gpu/drm/omapdrm/tcm-sita.c
@@
-87,14
+87,11
@@
struct tcm *sita_init(u16 width, u16 height, struct tcm_pt *attr)
if (width == 0 || height == 0)
return NULL;
- tcm = k
m
alloc(sizeof(*tcm), GFP_KERNEL);
- pvt = k
m
alloc(sizeof(*pvt), GFP_KERNEL);
+ tcm = k
z
alloc(sizeof(*tcm), GFP_KERNEL);
+ pvt = k
z
alloc(sizeof(*pvt), GFP_KERNEL);
if (!tcm || !pvt)
goto error;
- memset(tcm, 0, sizeof(*tcm));
- memset(pvt, 0, sizeof(*pvt));
-
/* Updating the pointers to SiTA implementation APIs */
tcm->height = height;
tcm->width = width;