X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=elogind.git;a=blobdiff_plain;f=src%2Fjournal%2Fcatalog.c;h=f1702328419dfa52033b450d2dba054438a6f7a5;hp=41cdb0dadeb3ae5bf8bf6d57e14467168b520fbb;hb=f8eeeaf9b783ebbab30672629abf3920db286811;hpb=56f64d95763a799ba4475daf44d8e9f72a1bd474 diff --git a/src/journal/catalog.c b/src/journal/catalog.c index 41cdb0dad..f17023284 100644 --- a/src/journal/catalog.c +++ b/src/journal/catalog.c @@ -26,7 +26,6 @@ #include #include #include -#include #include "util.h" #include "log.h" @@ -209,10 +208,8 @@ int catalog_import_file(Hashmap *h, struct strbuf *sb, const char *path) { assert(path); f = fopen(path, "re"); - if (!f) { - log_error_errno(errno, "Failed to open file %s: %m", path); - return -errno; - } + if (!f) + return log_error_errno(errno, "Failed to open file %s: %m", path); r = catalog_file_lang(path, &deflang); if (r < 0)