From: Heinrich Schuchardt Date: Mon, 25 Apr 2022 21:54:48 +0000 (+0200) Subject: efi_loader: simplify efi_add_conventional_memory_map() X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=8da26f51569aa3f9b6a0be49058399a0a036c14a;p=u-boot.git efi_loader: simplify efi_add_conventional_memory_map() Remove redundant constraint. Signed-off-by: Heinrich Schuchardt --- diff --git a/lib/efi_loader/efi_memory.c b/lib/efi_loader/efi_memory.c index 1c51a3fc45..e048a545e4 100644 --- a/lib/efi_loader/efi_memory.c +++ b/lib/efi_loader/efi_memory.c @@ -771,7 +771,7 @@ efi_status_t efi_add_conventional_memory_map(u64 ram_start, u64 ram_end, /* ram_top is before this region, reserve all */ efi_add_memory_map_pg(ram_start, pages, EFI_BOOT_SERVICES_DATA, true); - } else if ((ram_top >= ram_start) && (ram_top < ram_end)) { + } else if (ram_top < ram_end) { /* ram_top is inside this region, reserve parts */ pages = (ram_end - ram_top) >> EFI_PAGE_SHIFT;