From e958c057033e3ac636c13d3af4d0a7b38f5cb629 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Sat, 30 May 2020 00:32:31 +0200 Subject: [PATCH] journal-file: simplify boot ID acquiring --- src/journal/journal-file.c | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/src/journal/journal-file.c b/src/journal/journal-file.c index b1e092224f7..f6b7c660945 100644 --- a/src/journal/journal-file.c +++ b/src/journal/journal-file.c @@ -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 */ -- 2.47.3