egl: remove unneeded else statement in _eglInitLogger
authorEmil Velikov <emil.velikov@collabora.com>
Thu, 4 May 2017 18:31:12 +0000 (19:31 +0100)
committerEmil Velikov <emil.l.velikov@gmail.com>
Mon, 8 May 2017 14:33:56 +0000 (15:33 +0100)
The variable level is already initialized to -1 which is already
interpreted as FALLBACK_LOG_LEVEL.

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Eric Engestrom <eric@engestrom.ch>
Reviewed-by: Chad Versace <chadversary@chromium.org>
src/egl/main/egllog.c

index 4423272de52111b8c208d130228dc832aa75cc2f..6f0c0cda6c3e8cbe370902debcd064c2f42a482b 100644 (file)
@@ -136,9 +136,6 @@ _eglInitLogger(void)
          }
       }
    }
-   else {
-      level = FALLBACK_LOG_LEVEL;
-   }
 
    logging.level = (level >= 0) ? level : FALLBACK_LOG_LEVEL;
    logging.initialized = EGL_TRUE;