Commit e4a9f0bb authored by Olivier Fourdan's avatar Olivier Fourdan

xwayland: Remove unneeded variable

Just a small code cleanup, there is no need to allocate a variable only
to check the return value of eglInitialize().
Signed-off-by: default avatarOlivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer's avatarMichel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Tony Lindgren's avatarTony Lindgren <tony@atomide.com>
parent 95be87db
Pipeline #244694 passed with stages
in 5 minutes and 34 seconds
......@@ -1018,7 +1018,6 @@ xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen)
{
struct xwl_gbm_private *xwl_gbm = xwl_gbm_get(xwl_screen);
EGLint major, minor;
Bool egl_initialized = FALSE;
const GLubyte *renderer;
if (!xwl_gbm->fd_render_node && !xwl_gbm->drm_authenticated) {
......@@ -1039,8 +1038,7 @@ xwl_glamor_gbm_init_egl(struct xwl_screen *xwl_screen)
goto error;
}
egl_initialized = eglInitialize(xwl_screen->egl_display, &major, &minor);
if (!egl_initialized) {
if (!eglInitialize(xwl_screen->egl_display, &major, &minor)) {
ErrorF("eglInitialize() failed\n");
goto error;
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment