mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-11 15:37:23 +00:00
efi_loader: remove duplicate image size check
The image size is checked in efi_load_pe(). Avoid checking it twice. Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
This commit is contained in:
parent
5b94e26f1a
commit
578d7cc8fa
1 changed files with 0 additions and 4 deletions
|
@ -1883,10 +1883,6 @@ efi_status_t EFIAPI efi_load_image(bool boot_policy,
|
|||
if (ret != EFI_SUCCESS)
|
||||
goto error;
|
||||
} else {
|
||||
if (!source_size) {
|
||||
ret = EFI_LOAD_ERROR;
|
||||
goto error;
|
||||
}
|
||||
dest_buffer = source_buffer;
|
||||
}
|
||||
/* split file_path which contains both the device and file parts */
|
||||
|
|
Loading…
Reference in a new issue