OSDN Git Service

efi: Correct comment on efi_memmap_alloc
authorLiu Zixian <liuzixian4@huawei.com>
Tue, 14 Jun 2022 11:48:05 +0000 (19:48 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Wed, 15 Jun 2022 15:48:58 +0000 (17:48 +0200)
Returning zero means success now.

Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
drivers/firmware/efi/memmap.c

index 4df55a5..cf87dd7 100644 (file)
@@ -59,8 +59,7 @@ static void __init efi_memmap_free(void)
  * Depending on whether mm_init() has already been invoked or not,
  * either memblock or "normal" page allocation is used.
  *
- * Returns the physical address of the allocated memory map on
- * success, zero on failure.
+ * Returns zero on success, a negative error code on failure.
  */
 int __init efi_memmap_alloc(unsigned int num_entries,
                struct efi_memory_map_data *data)