The local copy of the boot_params made during build time is used now, so setting ramdisk_image/ramdisk_size fields is no longer needed, since they are already set to 0. Remove no longer required assignments. Signed-off-by: Evgeniy Baskov <baskov@xxxxxxxxx> --- drivers/firmware/efi/libstub/x86-stub.c | 3 --- 1 file changed, 3 deletions(-) diff --git a/drivers/firmware/efi/libstub/x86-stub.c b/drivers/firmware/efi/libstub/x86-stub.c index 5dbc9c7a4aa3..7c5561aaba71 100644 --- a/drivers/firmware/efi/libstub/x86-stub.c +++ b/drivers/firmware/efi/libstub/x86-stub.c @@ -389,9 +389,6 @@ efi_status_t __efiapi efi_pe_entry(efi_handle_t handle, efi_set_u64_split((unsigned long)cmdline_ptr, &hdr->cmd_line_ptr, &efi_boot_params.ext_cmd_line_ptr); - hdr->ramdisk_image = 0; - hdr->ramdisk_size = 0; - efi_stub_entry(handle, sys_table_arg, &efi_boot_params); /* not reached */ -- 2.39.2