]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: remove duplicate image size check
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Thu, 27 Aug 2020 15:54:53 +0000 (17:54 +0200)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Sep 2020 19:21:41 +0000 (21:21 +0200)
The image size is checked in efi_load_pe(). Avoid checking it twice.

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
lib/efi_loader/efi_boottime.c

index d49145fc76b698a18217a87b42781aac87ae6ca1..dcd3eec89441b552ecf851d9e7a3c6a0034552a9 100644 (file)
@@ -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 */