dryang / rpms / systemd

Forked from rpms/systemd 2 years ago
Clone
661545
From 5f71ed0c948653fd9037d751f48182cb0c5dfb99 Mon Sep 17 00:00:00 2001
661545
From: Frantisek Sumsal <fsumsal@redhat.com>
661545
Date: Wed, 27 Feb 2019 19:01:20 +0100
661545
Subject: [PATCH] journal: drop redundant condition
661545
661545
Relevant commit: 29bfb683a8c9d03f10db58b4e61351fd9048f270
661545
661545
Resolves: #1694605
661545
---
661545
 src/journal/journald-server.c | 2 +-
661545
 1 file changed, 1 insertion(+), 1 deletion(-)
661545
661545
diff --git a/src/journal/journald-server.c b/src/journal/journald-server.c
661545
index 2e1e07eb0e..aaabb2f7ab 100644
661545
--- a/src/journal/journald-server.c
661545
+++ b/src/journal/journald-server.c
661545
@@ -345,7 +345,7 @@ static int system_journal_open(Server *s, bool flush_requested) {
661545
                 if (r >= 0) {
661545
                         server_fix_perms(s, s->system_journal, 0);
661545
                         available_space(s, true);
661545
-                } else if (r < 0) {
661545
+                } else {
661545
                         if (r != -ENOENT && r != -EROFS)
661545
                                 log_warning_errno(r, "Failed to open system journal: %m");
661545