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:
2393acd
)
Remove redundant memclear
author
coypu
<coypu@sdf.org>
Fri, 30 Jun 2017 03:56:55 +0000
(
03:56
+0000)
committer
Eric Engestrom
<eric.engestrom@imgtec.com>
Fri, 7 Jul 2017 09:49:40 +0000
(10:49 +0100)
drmMalloc will zero out the memory for us
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
xf86drm.c
patch
|
blob
|
history
diff --git
a/xf86drm.c
b/xf86drm.c
index 2ac3f265da41971ae40e38d7ba0417480f91bc7b..879f85b636a67c1004ed07e6821490d5b913df9a 100644
(file)
--- a/
xf86drm.c
+++ b/
xf86drm.c
@@
-866,8
+866,6
@@
drmVersionPtr drmGetVersion(int fd)
drmVersionPtr retval;
drm_version_t *version = drmMalloc(sizeof(*version));
- memclear(*version);
-
if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
drmFreeKernelVersion(version);
return NULL;