mirror of
https://gitlab.freedesktop.org/mesa/drm.git
synced 2026-01-04 18:00:22 +01:00
Remove redundant memclear
drmMalloc will zero out the memory for us Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
This commit is contained in:
parent
2393acd144
commit
ac21401790
1 changed files with 0 additions and 2 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue