egl: fold _eglError() + return EGL_FALSE
authorEmil Velikov <emil.velikov@collabora.com>
Tue, 20 Jun 2017 14:40:28 +0000 (15:40 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 26 Jun 2017 11:41:00 +0000 (12:41 +0100)
commitc58af5cbb295760687b23428f8ac240459e5cf56
tree0bf1c53aedde3010b4254c12531c6249e85d13ca
parentd42b09580a5270e8906dad4b923f320d1de18167
egl: fold _eglError() + return EGL_FALSE

The function _eglError() already explicitly returns EGL_FALSE,
explicitly to simplify the callers. Make use of it.

While EGL_FALSE is numerically identical to false, NULL, EGL_NO_FOO,
storage is not the same so we cannot use it for "everything".

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric.engestrom@imgtec.com>
src/egl/drivers/dri2/egl_dri2.c
src/egl/drivers/dri2/platform_android.c
src/egl/drivers/dri2/platform_drm.c
src/egl/drivers/dri2/platform_wayland.c
src/egl/drivers/dri2/platform_x11.c
src/egl/drivers/haiku/egl_haiku.cpp
src/egl/main/eglcontext.c
src/egl/main/egldisplay.c
src/egl/main/eglsurface.c