summaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorHeinrich Schuchardt <xypron.glpk@gmx.de>2020-08-27 17:54:53 +0200
committerHeinrich Schuchardt <xypron.glpk@gmx.de>2020-09-06 21:21:41 +0200
commit578d7cc8fa11f938a110bfea769c1dd311af0d75 (patch)
tree2a4b5e2663dbd31771a4437b1a73115664447b29 /lib
parent5b94e26f1acc665e9b2789a31f3e5a87e23bf38d (diff)
downloadu-boot-578d7cc8fa11f938a110bfea769c1dd311af0d75.tar.gz
u-boot-578d7cc8fa11f938a110bfea769c1dd311af0d75.tar.xz
u-boot-578d7cc8fa11f938a110bfea769c1dd311af0d75.zip
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>
Diffstat (limited to 'lib')
-rw-r--r--lib/efi_loader/efi_boottime.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/lib/efi_loader/efi_boottime.c b/lib/efi_loader/efi_boottime.c
index d49145fc76..dcd3eec894 100644
--- a/lib/efi_loader/efi_boottime.c
+++ b/lib/efi_loader/efi_boottime.c
@@ -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 */