From: Karel Zak Date: Wed, 5 Aug 2015 11:23:34 +0000 (+0200) Subject: logger: improve readability [smatch scan] X-Git-Tag: v2.27-rc2~26 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=28bad822c4516a4365262b6023f8d24858e140f0;p=thirdparty%2Futil-linux.git logger: improve readability [smatch scan] Signed-off-by: Karel Zak --- diff --git a/misc-utils/logger.c b/misc-utils/logger.c index 181121a29c..e4a6c5aa12 100644 --- a/misc-utils/logger.c +++ b/misc-utils/logger.c @@ -243,11 +243,11 @@ static int unix_socket(struct logger_ctl *ctl, const char *path, const int socke if (i == 0) { if (ctl->unix_socket_errors) err(EXIT_FAILURE, _("socket %s"), path); - else - /* openlog(3) compatibility, socket errors are - * not reported, but ignored silently */ - ctl->noact = 1; - return -1; + + /* openlog(3) compatibility, socket errors are + * not reported, but ignored silently */ + ctl->noact = 1; + return -1; } return fd; }