egl: drop memset(0) of calloc'ed memory
authorEric Engestrom <eric@engestrom.ch>
Mon, 25 Sep 2017 21:39:24 +0000 (22:39 +0100)
committerEric Engestrom <eric.engestrom@imgtec.com>
Thu, 12 Oct 2017 13:40:12 +0000 (14:40 +0100)
`_EGLDriver *drv` is a freshly calloc()'ed object, memset(0)'ing some of
it is a no-op.

Signed-off-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Emil Velikov <emil.velikov@collabora.com>
src/egl/main/eglfallbacks.c

index 1575ab5f7939952a150377b8cafcb396df913b7a..2d4851f7578cd00d31860e3a3063fe36ff671009 100644 (file)
@@ -49,8 +49,6 @@ _eglReturnFalse(void)
 void
 _eglInitDriverFallbacks(_EGLDriver *drv)
 {
-   memset(&drv->API, 0, sizeof(drv->API));
-
    /* the driver has to implement these */
    drv->API.Initialize = NULL;
    drv->API.Terminate = NULL;