Remove redundant memclear
drmMalloc will zero out the memory for us Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>main
parent
2393acd144
commit
ac21401790
|
@ -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;
|
||||||
|
|
Loading…
Reference in New Issue