journal: fix return code

Introduced in fa6ac76083.

Might be related to CID #1261724, but I don't know if coverity can
recurse this deep.
This commit is contained in:
Zbigniew Jędrzejewski-Szmek
2015-03-09 22:02:25 -04:00
parent d587eca510
commit 977eaa1eae
+1 -3
View File
@@ -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;