summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorYu Watanabe <watanabe.yu+github@gmail.com>2018-06-25 06:36:49 +0200
committerYu Watanabe <watanabe.yu+github@gmail.com>2018-06-25 06:36:49 +0200
commit29bfb683a8c9d03f10db58b4e61351fd9048f270 (patch)
tree48f311ff70bab256c0f7f9f800c2fc15aece98b3
parentresolve: fix return value type of dns_answer_has_dname_for_cname() (diff)
downloadsystemd-29bfb683a8c9d03f10db58b4e61351fd9048f270.tar.xz
systemd-29bfb683a8c9d03f10db58b4e61351fd9048f270.zip
journal: drop redundant condition
-rw-r--r--src/journal/journald-server.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
index 4f1550ec5b..7a11feeb6a 100644
--- a/src/journal/journald-server.c
+++ b/src/journal/journald-server.c
@@ -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");