journal-file: simplify boot ID acquiring

This commit is contained in:
Lennart Poettering
2020-06-25 15:01:12 +02:00
parent cde8c5f722
commit e958c05703
+1 -4
View File
@@ -445,7 +445,6 @@ static int journal_file_init_header(JournalFile *f, JournalFile *template) {
}
static int journal_file_refresh_header(JournalFile *f) {
sd_id128_t boot_id;
int r;
assert(f);
@@ -458,12 +457,10 @@ static int journal_file_refresh_header(JournalFile *f) {
else if (r < 0)
return r;
r = sd_id128_get_boot(&boot_id);
r = sd_id128_get_boot(&f->header->boot_id);
if (r < 0)
return r;
f->header->boot_id = boot_id;
r = journal_file_set_online(f);
/* Sync the online state to disk */