From: Lennart Poettering Date: Mon, 24 Jun 2024 15:38:29 +0000 (+0200) Subject: uefi: drop redundant local variable X-Git-Tag: v257-rc1~1059^2~2 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=ff8d08ab4e026bd967d9835d01204f2155a69045;p=thirdparty%2Fsystemd.git uefi: drop redundant local variable --- diff --git a/src/boot/efi/measure.c b/src/boot/efi/measure.c index 27c382c1708..24cb60e7a31 100644 --- a/src/boot/efi/measure.c +++ b/src/boot/efi/measure.c @@ -288,7 +288,6 @@ EFI_STATUS tpm_log_ipl_event_ascii(uint32_t pcrindex, EFI_PHYSICAL_ADDRESS buffe } EFI_STATUS tpm_log_load_options(const char16_t *load_options, bool *ret_measured) { - bool measured = false; EFI_STATUS err; /* Measures a load options string into the TPM2, i.e. the kernel command line */ @@ -298,16 +297,13 @@ EFI_STATUS tpm_log_load_options(const char16_t *load_options, bool *ret_measured POINTER_TO_PHYSICAL_ADDRESS(load_options), strsize16(load_options), load_options, - &measured); + ret_measured); if (err != EFI_SUCCESS) return log_error_status( err, "Unable to add load options (i.e. kernel command) line measurement to PCR %i: %m", TPM2_PCR_KERNEL_CONFIG); - if (ret_measured) - *ret_measured = measured; - return EFI_SUCCESS; }