From: Yu Watanabe Date: Wed, 12 Oct 2022 06:50:53 +0000 (+0900) Subject: sd-journal: drop unused argument X-Git-Tag: v252-rc2~55^2~3 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=8f7102376470000b4cd73aca4277dbf1e87d66bb;p=thirdparty%2Fsystemd.git sd-journal: drop unused argument Follow-up for a9089a6604066a8fa8138af2a6388be48f2a80ef. --- diff --git a/src/libsystemd/sd-journal/journal-file.c b/src/libsystemd/sd-journal/journal-file.c index ea41a6f18cb..13f891a6335 100644 --- a/src/libsystemd/sd-journal/journal-file.c +++ b/src/libsystemd/sd-journal/journal-file.c @@ -1960,11 +1960,11 @@ static int link_entry_into_array_plus_one( return 0; } -static int journal_file_link_entry_item(JournalFile *f, Object *o, uint64_t offset, uint64_t p) { +static int journal_file_link_entry_item(JournalFile *f, uint64_t offset, uint64_t p) { + Object *o; int r; assert(f); - assert(o); assert(offset > 0); r = journal_file_move_to_object(f, OBJECT_DATA, p, &o); @@ -2025,7 +2025,7 @@ static int journal_file_link_entry( * immediately but try to link the other entry items since it might still be possible to link * those if they don't require a new entry array to be allocated. */ - k = journal_file_link_entry_item(f, o, offset, items[i].object_offset); + k = journal_file_link_entry_item(f, offset, items[i].object_offset); if (k == -E2BIG) r = k; else if (k < 0)