From: Emil Velikov Date: Thu, 4 May 2017 18:31:12 +0000 (+0100) Subject: egl: remove unneeded else statement in _eglInitLogger X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=8d6f92313d8077bcff193a30486b875d93cdf5d5;p=mesa.git egl: remove unneeded else statement in _eglInitLogger The variable level is already initialized to -1 which is already interpreted as FALLBACK_LOG_LEVEL. Signed-off-by: Emil Velikov Reviewed-by: Eric Engestrom Reviewed-by: Chad Versace --- diff --git a/src/egl/main/egllog.c b/src/egl/main/egllog.c index 4423272de52..6f0c0cda6c3 100644 --- a/src/egl/main/egllog.c +++ b/src/egl/main/egllog.c @@ -136,9 +136,6 @@ _eglInitLogger(void) } } } - else { - level = FALLBACK_LOG_LEVEL; - } logging.level = (level >= 0) ? level : FALLBACK_LOG_LEVEL; logging.initialized = EGL_TRUE;