1ff636
From 185e6b251907bdf6adc63866f38722e9fb3d3715 Mon Sep 17 00:00:00 2001
1ff636
From: =?UTF-8?q?Zbigniew=20J=C4=99drzejewski-Szmek?= <zbyszek@in.waw.pl>
1ff636
Date: Mon, 9 Mar 2015 17:46:30 -0400
1ff636
Subject: [PATCH] journal: fix return code
1ff636
1ff636
Introduced in fa6ac76083b8ff.
1ff636
1ff636
Might be related to CID #1261724, but I don't know if coverity can
1ff636
recurse this deep.
1ff636
1ff636
(cherry picked from commit 977eaa1eae53af7f418d87fcb42f4a4d34aad739)
1ff636
---
1ff636
 src/journal/journal-file.c | 4 +---
1ff636
 1 file changed, 1 insertion(+), 3 deletions(-)
1ff636
1ff636
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
181b3f
index 24c49b916..f500568fe 100644
1ff636
--- a/src/journal/journal-file.c
1ff636
+++ b/src/journal/journal-file.c
1ff636
@@ -2652,10 +2652,8 @@ int journal_file_open(
1ff636
         }
1ff636
 
1ff636
         r = mmap_cache_get(f->mmap, f->fd, f->prot, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_stat, &h);
1ff636
-        if (r < 0) {
1ff636
-                r = -errno;
1ff636
+        if (r < 0)
1ff636
                 goto fail;
1ff636
-        }
1ff636
 
1ff636
         f->header = h;
1ff636