]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: simplify efi_add_conventional_memory_map()
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 25 Apr 2022 21:54:48 +0000 (23:54 +0200)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 29 Apr 2022 12:25:39 +0000 (14:25 +0200)
Remove redundant constraint.

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
lib/efi_loader/efi_memory.c

index 1c51a3fc45ef069f4367032a609eb4c0a1e2d1c7..e048a545e4140c41e406732be77e23b93f5912e5 100644 (file)
@@ -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;