drm: Branch 'master'
[email protected] (Eric Engestr??m) Fri, 7 Jul 2017 12:34:32 +0000 (UTC)
| Newsgroups | gmane.comp.video.dri.patches |
|---|---|
| Message-ID | <[email protected]> |
xf86drm.c | 2 -- 1 file changed, 2 deletions(-) New commits: commit ac214017904b31bc5f80f802d748d5f4f3149d22 Author: coypu <[email protected]> Date: Fri Jun 30 03:56:55 2017 +0000 Remove redundant memclear drmMalloc will zero out the memory for us Reviewed-by: Eric Engestrom <[email protected]> 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; ------------------------------------------------------------------------------ Check out the vibrant tech community on one of the world's most engaging tech sites, Slashdot.org! http://sdm.link/slashdot --