diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/journal/journal-file.c | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index 0e33a0fd87..1e861d10a3 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -2795,14 +2795,15 @@ int journal_file_open_reliably( r = journal_file_open(fname, flags, mode, compress, seal, metrics, mmap_cache, template, ret); - if (r != -EBADMSG && /* corrupted */ - r != -ENODATA && /* truncated */ - r != -EHOSTDOWN && /* other machine */ - r != -EPROTONOSUPPORT && /* incompatible feature */ - r != -EBUSY && /* unclean shutdown */ - r != -ESHUTDOWN && /* already archived */ - r != -EIO && /* IO error, including SIGBUS on mmap */ - r != -EIDRM /* File has been deleted */) + if (!IN_SET(r, + -EBADMSG, /* corrupted */ + -ENODATA, /* truncated */ + -EHOSTDOWN, /* other machine */ + -EPROTONOSUPPORT, /* incompatible feature */ + -EBUSY, /* unclean shutdown */ + -ESHUTDOWN, /* already archived */ + -EIO, /* IO error, including SIGBUS on mmap */ + -EIDRM /* File has been deleted */)) return r; if ((flags & O_ACCMODE) == O_RDONLY) |