diff options
author | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-25 23:54:48 +0200 |
---|---|---|
committer | Heinrich Schuchardt <heinrich.schuchardt@canonical.com> | 2022-04-29 14:25:39 +0200 |
commit | 8da26f51569aa3f9b6a0be49058399a0a036c14a (patch) | |
tree | 540d540c2ba7cd60bfe57a65064b3bc3f90eb836 /lib | |
parent | 4f419960bff5bbc646e28da3f8c953455319ea16 (diff) | |
download | u-boot-8da26f51569aa3f9b6a0be49058399a0a036c14a.tar.gz u-boot-8da26f51569aa3f9b6a0be49058399a0a036c14a.tar.bz2 u-boot-8da26f51569aa3f9b6a0be49058399a0a036c14a.zip |
efi_loader: simplify efi_add_conventional_memory_map()
Remove redundant constraint.
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Diffstat (limited to 'lib')
-rw-r--r-- | lib/efi_loader/efi_memory.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; |