[Mesa-dev] [PATCH 4/7] egl: remove unneeded else statement in _eglInitLogger

Emil Velikov emil.l.velikov at gmail.com
Thu May 4 18:46:59 UTC 2017


From: Emil Velikov <emil.velikov at collabora.com>

The variable level is already initialized to -1 which is already
interpreted as FALLBACK_LOG_LEVEL.

Signed-off-by: Emil Velikov <emil.velikov at collabora.com>
---
 src/egl/main/egllog.c | 3 ---
 1 file changed, 3 deletions(-)

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;
-- 
2.12.2



More information about the mesa-dev mailing list