From 30ecd869471722db6cb693aaaa75120a4dfe7837 Mon Sep 17 00:00:00 2001 From: Eric Engestrom Date: Thu, 10 Jan 2019 13:07:29 +0000 Subject: [PATCH] egl: remove NULL assignments after calloc() MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit Signed-off-by: Eric Engestrom Reviewed-by: Emil Velikov Reviewed-by: Tapani Pälli --- src/egl/main/eglfallbacks.c | 21 --------------------- 1 file changed, 21 deletions(-) diff --git a/src/egl/main/eglfallbacks.c b/src/egl/main/eglfallbacks.c index 2d4851f7578..bf667af1124 100644 --- a/src/egl/main/eglfallbacks.c +++ b/src/egl/main/eglfallbacks.c @@ -49,10 +49,6 @@ _eglReturnFalse(void) void _eglInitDriverFallbacks(_EGLDriver *drv) { - /* the driver has to implement these */ - drv->API.Initialize = NULL; - drv->API.Terminate = NULL; - drv->API.GetConfigs = _eglGetConfigs; drv->API.ChooseConfig = _eglChooseConfig; drv->API.GetConfigAttrib = _eglGetConfigAttrib; @@ -82,22 +78,5 @@ _eglInitDriverFallbacks(_EGLDriver *drv) drv->API.WaitNative = (void*) _eglReturnFalse; drv->API.GetProcAddress = (void*) _eglReturnFalse; - drv->API.CreateImageKHR = NULL; - drv->API.DestroyImageKHR = NULL; - - drv->API.CreateSyncKHR = NULL; - drv->API.DestroySyncKHR = NULL; - drv->API.ClientWaitSyncKHR = NULL; - drv->API.WaitSyncKHR = NULL; - drv->API.SignalSyncKHR = NULL; drv->API.GetSyncAttrib = _eglGetSyncAttrib; - drv->API.DupNativeFenceFDANDROID = NULL; - - drv->API.CreateDRMImageMESA = NULL; - drv->API.ExportDRMImageMESA = NULL; - - drv->API.SwapBuffersRegionNOK = NULL; - - drv->API.ExportDMABUFImageQueryMESA = NULL; - drv->API.ExportDMABUFImageMESA = NULL; } -- 2.30.2