mirror of
https://github.com/systemd/systemd-stable.git
synced 2025-01-06 13:17:44 +03:00
journal-file: delete some unnecessary braces
Trivial change, just something I noticed skimming the code.
This commit is contained in:
parent
e64664cefe
commit
a602d93e44
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user