summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-09 17:46:30 -0400
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>2015-03-09 22:02:25 -0400
commit977eaa1eae53af7f418d87fcb42f4a4d34aad739 (patch)
treecb2ff5519bb58ae58b2c2d726fd40a5b57d6ce3d
parentd587eca5104b212793b310d8590db480f1004d3a (diff)
journal: fix return code
Introduced in fa6ac76083b8ff. Might be related to CID #1261724, but I don't know if coverity can recurse this deep.
-rw-r--r--src/journal/journal-file.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c
index f857a6aa37..8e7642710e 100644
--- a/src/journal/journal-file.c
+++ b/src/journal/journal-file.c
@@ -2651,10 +2651,8 @@ int journal_file_open(
}
r = mmap_cache_get(f->mmap, f->fd, f->prot, CONTEXT_HEADER, true, 0, PAGE_ALIGN(sizeof(Header)), &f->last_stat, &h);
- if (r < 0) {
- r = -errno;
+ if (r < 0)
goto fail;
- }
f->header = h;