diff options
author | Olivier Fourdan <ofourdan@redhat.com> | 2020-12-14 15:38:42 +0100 |
---|---|---|
committer | Olivier Fourdan <ofourdan@redhat.com> | 2020-12-15 15:03:47 +0100 |
commit | e4a9f0bb4e36cffe4f7021bfa27753a9f42df2ff (patch) | |
tree | 0d6004fa4067941f89322a6981f685072729a834 /hw/xwayland/xwayland-glamor-gbm.c | |
parent | 95be87db986470c8fce5ea91af0bbf3177f1de36 (diff) |
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: Olivier Fourdan <ofourdan@redhat.com>
Reviewed-by: Michel Dänzer <mdaenzer@redhat.com>
Reviewed-by: Tony Lindgren <tony@atomide.com>
Diffstat (limited to 'hw/xwayland/xwayland-glamor-gbm.c')
-rw-r--r-- | hw/xwayland/xwayland-glamor-gbm.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/hw/xwayland/xwayland-glamor-gbm.c b/hw/xwayland/xwayland-glamor-gbm.c index d1bda91c5..d6a560ac7 100644 --- a/hw/xwayland/xwayland-glamor-gbm.c +++ b/hw/xwayland/xwayland-glamor-gbm.c @@ -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; } |