Remove redundant memclear

drmMalloc will zero out the memory for us

Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
main
coypu 2017-06-30 03:56:55 +00:00 committed by Eric Engestrom
parent 2393acd144
commit ac21401790
1 changed files with 0 additions and 2 deletions

View File

@ -866,8 +866,6 @@ drmVersionPtr drmGetVersion(int fd)
drmVersionPtr retval; drmVersionPtr retval;
drm_version_t *version = drmMalloc(sizeof(*version)); drm_version_t *version = drmMalloc(sizeof(*version));
memclear(*version);
if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) { if (drmIoctl(fd, DRM_IOCTL_VERSION, version)) {
drmFreeKernelVersion(version); drmFreeKernelVersion(version);
return NULL; return NULL;