From 470e2cecec1e5a3f12cdb5d7c9e0f5c8bfa32cfa Mon Sep 17 00:00:00 2001 From: Alex Turbov Date: Wed, 29 Oct 2014 23:50:03 +0300 Subject: Remove garbage code: first of all `r` used in compare was uninitialized here! Second, it is completely useless (and remains after cleaning up systemd crap). --- src/shared/log.c | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/shared/log.c') diff --git a/src/shared/log.c b/src/shared/log.c index af6a983087..70708cbf0e 100644 --- a/src/shared/log.c +++ b/src/shared/log.c @@ -186,12 +186,6 @@ int log_open(void) { getpid() == 1 || isatty(STDERR_FILENO) <= 0) { - if (log_target == LOG_TARGET_AUTO) - if (r >= 0) { - log_close_syslog(); - log_close_console(); - return r; - } if (log_target == LOG_TARGET_SYSLOG_OR_KMSG || log_target == LOG_TARGET_SYSLOG) { r = log_open_syslog(); -- cgit v1.2.3-54-g00ecf