]> git.ipfire.org Git - thirdparty/util-linux.git/commitdiff
logger: improve readability [smatch scan]
authorKarel Zak <kzak@redhat.com>
Wed, 5 Aug 2015 11:23:34 +0000 (13:23 +0200)
committerKarel Zak <kzak@redhat.com>
Wed, 5 Aug 2015 11:23:34 +0000 (13:23 +0200)
Signed-off-by: Karel Zak <kzak@redhat.com>
misc-utils/logger.c

index 181121a29cd17ccc46817a2f1e072d6ab07d9a82..e4a6c5aa125525ca5f02d73be2a7d54e9eae8f5b 100644 (file)
@@ -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;
 }