debug: Remove an "else"
authorVolker Lendecke <vl@samba.org>
Tue, 29 Jul 2014 15:59:06 +0000 (15:59 +0000)
committerMichael Adam <obnox@samba.org>
Thu, 31 Jul 2014 16:49:47 +0000 (18:49 +0200)
No else necessary, we just did a "goto done:"

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Michael Adam <obnox@samba.org>
lib/util/debug.c

index d96fcc5322f13a1df108ee015a0e090614097d35..6f2c3099d4b34584033f76f24fa194da6fa75481 100644 (file)
@@ -784,7 +784,9 @@ static int Debug1( const char *format_str, ... )
 
                goto done;
 
-       } else if ( state.logtype != DEBUG_FILE ) {
+       }
+
+       if ( state.logtype != DEBUG_FILE ) {
                va_start( ap, format_str );
                if (state.fd > 0)
                        (void)vdprintf( state.fd, format_str, ap );