From: Vito Caputo Date: Sun, 10 Nov 2019 07:00:19 +0000 (-0800) Subject: journal-file: delete some unnecessary braces X-Git-Tag: v244-rc1~78 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=a602d93e4408ebff61729dbf7d06d42874e99574;p=thirdparty%2Fsystemd.git journal-file: delete some unnecessary braces Trivial change, just something I noticed skimming the code. --- diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index db5664e4b3c..e1cd080c646 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -753,7 +753,7 @@ static int journal_file_check_object(JournalFile *f, uint64_t offset, Object *o) switch (o->object.type) { - case OBJECT_DATA: { + case OBJECT_DATA: if ((le64toh(o->data.entry_offset) == 0) ^ (le64toh(o->data.n_entries) == 0)) return log_debug_errno(SYNTHETIC_ERRNO(EBADMSG), "Bad n_entries: %" PRIu64 ": %" PRIu64, @@ -780,7 +780,6 @@ static int journal_file_check_object(JournalFile *f, uint64_t offset, Object *o) offset); break; - } case OBJECT_FIELD: if (le64toh(o->object.size) - offsetof(FieldObject, payload) <= 0)