anitazha / rpms / systemd

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