egl: fold _eglError() + return EGL_FALSE
[mesa.git] / src / egl / drivers / haiku / egl_haiku.cpp
index ef74f657b14c467b96d7cd93f75823ec53901d8e..10f3abc070ab1290657f69a67508e59b6cda2100 100644 (file)
@@ -150,10 +150,8 @@ haiku_add_configs_for_visuals(_EGLDisplay *dpy)
 
        struct haiku_egl_config* conf;
        conf = (struct haiku_egl_config*) calloc(1, sizeof (*conf));
-       if (!conf) {
-               _eglError(EGL_BAD_ALLOC, "haiku_add_configs_for_visuals");
-               return EGL_FALSE;
-       }
+       if (!conf)
+               return _eglError(EGL_BAD_ALLOC, "haiku_add_configs_for_visuals");
 
        _eglInitConfig(&conf->base, dpy, 1);
        TRACE("Config inited\n");