]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
efi_loader: fix comment in ESRT code
authorHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Mon, 23 Jan 2023 23:25:23 +0000 (00:25 +0100)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Fri, 27 Jan 2023 17:32:00 +0000 (18:32 +0100)
There is no variable num_pages in function efi_esrt_allocate_install().

Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Reviewed-by: Ilias Apalodimas <ilias.apalodimas@linaro.org>
lib/efi_loader/efi_esrt.c

index dcc08a6d3a2ac58136b4204d56a20fd1b3af3559..7f46d651e6f2a8c7bfb0fc71b4cbf265afa4283d 100644 (file)
@@ -115,7 +115,7 @@ efi_status_t efi_esrt_allocate_install(u32 num_entries)
        u32 size = efi_esrt_entries_to_size(num_entries);
        efi_guid_t esrt_guid = efi_esrt_guid;
 
-       /* Reserve num_pages for ESRT */
+       /* Reserve memory for ESRT */
        ret = efi_allocate_pool(EFI_BOOT_SERVICES_DATA, size,
                                (void **)&new_esrt);