summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcoypu <coypu@sdf.org>2017-06-30 03:56:55 +0000
committerHawking Zhang <Hawking.Zhang@amd.com>2017-07-31 16:19:54 +0800
commit206369f730a8e24dc8b5bd1b39f2934b56a59a9b (patch)
tree9fda09969007d3fe4d511b1a0d97e833a7a02202
parent4bb5a6c29dd940f2c2c9a3f2eb14f488f043dcf3 (diff)
Remove redundant memclear
drmMalloc will zero out the memory for us Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
-rw-r--r--xf86drm.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/xf86drm.c b/xf86drm.c
index 2ac3f265..879f85b6 100644
--- 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;