]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
journal-file: delete some unnecessary braces
authorVito Caputo <vcaputo@pengaru.com>
Sun, 10 Nov 2019 07:00:19 +0000 (23:00 -0800)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Sun, 10 Nov 2019 11:39:44 +0000 (12:39 +0100)
Trivial change, just something I noticed skimming the code.

src/journal/journal-file.c

index db5664e4b3cfaae0b4d8f9b3f19bed4b434f0156..e1cd080c646920d1acfee49c0c86494466e5d0a2 100644 (file)
@@ -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)