Skip to content

Commit 05a0879

Browse files
Colin Ian KingIngo Molnar
authored andcommitted
efi/libstub/x86: Remove redundant assignment to pointer hdr
The pointer hdr is being assigned a value that is never read and it is being updated later with a new value. The assignment is redundant and can be removed. Addresses-Coverity: ("Unused value") Signed-off-by: Colin Ian King <[email protected]> Signed-off-by: Ard Biesheuvel <[email protected]> Signed-off-by: Ingo Molnar <[email protected]> Link: https://lore.kernel.org/r/[email protected] Link: https://lore.kernel.org/r/[email protected]
1 parent b450b30 commit 05a0879

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

drivers/firmware/efi/libstub/x86-stub.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -392,8 +392,6 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle,
392392
image_base = efi_table_attr(image, image_base);
393393
image_offset = (void *)startup_32 - image_base;
394394

395-
hdr = &((struct boot_params *)image_base)->hdr;
396-
397395
status = efi_allocate_pages(0x4000, (unsigned long *)&boot_params, ULONG_MAX);
398396
if (status != EFI_SUCCESS) {
399397
efi_printk("Failed to allocate lowmem for boot params\n");

0 commit comments

Comments
 (0)