From b0221d58f9f17227246d479cbbe334093f9e08be Mon Sep 17 00:00:00 2001 From: Volker Lendecke Date: Tue, 29 Jul 2014 15:47:07 +0000 Subject: debug: Remove two pointless assignments "goto done:" jumps to that exact assignment :-) Signed-off-by: Volker Lendecke Reviewed-by: Michael Adam --- lib/util/debug.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'lib') diff --git a/lib/util/debug.c b/lib/util/debug.c index 9fdad54edb9..d96fcc5322f 100644 --- a/lib/util/debug.c +++ b/lib/util/debug.c @@ -789,7 +789,6 @@ static int Debug1( const char *format_str, ... ) if (state.fd > 0) (void)vdprintf( state.fd, format_str, ap ); va_end( ap ); - errno = old_errno; goto done; } @@ -802,7 +801,6 @@ static int Debug1( const char *format_str, ... ) int fd = open( state.debugf, O_WRONLY|O_APPEND|O_CREAT, 0644 ); (void)umask( oldumask ); if(fd == -1) { - errno = old_errno; goto done; } state.fd = fd; -- cgit v1.2.1