]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal: drop redundant condition
authorYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:36:49 +0000 (13:36 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Mon, 25 Jun 2018 04:36:49 +0000 (13:36 +0900)
src/journal/journald-server.c

index 4f1550ec5b728283937f9c7a53a649331ecb2df7..7a11feeb6a5c83fa5fb73b4bea420d177ae150ce 100644 (file)
@@ -309,7 +309,7 @@ static int system_journal_open(Server *s, bool flush_requested) {
                         server_add_acls(s->system_journal, 0);
                         (void) cache_space_refresh(s, &s->system_storage);
                         patch_min_use(&s->system_storage);
-                } else if (r < 0) {
+                } else {
                         if (!IN_SET(r, -ENOENT, -EROFS))
                                 log_warning_errno(r, "Failed to open system journal: %m");