summaryrefslogtreecommitdiffstats
path: root/misc-utils/logger.c
diff options
context:
space:
mode:
authorKarel Zak2015-08-05 13:23:34 +0200
committerKarel Zak2015-08-05 13:23:34 +0200
commit28bad822c4516a4365262b6023f8d24858e140f0 (patch)
treee48f3b454ea79e6d67a74a32817d7179af761e1b /misc-utils/logger.c
parentmisc: fix indention [smatch scan] (diff)
downloadkernel-qcow2-util-linux-28bad822c4516a4365262b6023f8d24858e140f0.tar.gz
kernel-qcow2-util-linux-28bad822c4516a4365262b6023f8d24858e140f0.tar.xz
kernel-qcow2-util-linux-28bad822c4516a4365262b6023f8d24858e140f0.zip
logger: improve readability [smatch scan]
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'misc-utils/logger.c')
-rw-r--r--misc-utils/logger.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/misc-utils/logger.c b/misc-utils/logger.c
index 181121a29..e4a6c5aa1 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;
}