aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorcoypu2017-06-29 22:56:55 -0500
committerEric Engestrom2017-07-07 04:49:40 -0500
commitac214017904b31bc5f80f802d748d5f4f3149d22 (patch)
tree2aef61a82027e1aa53a2418c85bd7b6bb9c1c783 /xf86drm.c
parent2393acd14487db0b7bedcf5af7b3710066809cbc (diff)
downloadexternal-libdrm-ac214017904b31bc5f80f802d748d5f4f3149d22.tar.gz
external-libdrm-ac214017904b31bc5f80f802d748d5f4f3149d22.tar.xz
external-libdrm-ac214017904b31bc5f80f802d748d5f4f3149d22.zip
Remove redundant memclear
drmMalloc will zero out the memory for us Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
Diffstat (limited to 'xf86drm.c')
-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)
866 drmVersionPtr retval; 866 drmVersionPtr retval;
867 drm_version_t *version = drmMalloc(sizeof(*version)); 867 drm_version_t *version = drmMalloc(sizeof(*version));
868 868
869 memclear(*version);
870
871 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { 869 if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
872 drmFreeKernelVersion(version); 870 drmFreeKernelVersion(version);
873 return NULL; 871 return NULL;