diff options
author | Liu Zixian <liuzixian4@huawei.com> | 2022-06-14 19:48:05 +0800 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2022-06-15 17:48:58 +0200 |
commit | db01ea882bf601252dad57242655da17fd9ad2f5 (patch) | |
tree | b6a13baca81e7ab94513aaeaffe96d47d9afd8a7 /drivers/firmware/efi/memmap.c | |
parent | 902c2d91582c7ff0cb5f57ffb3766656f9b910c6 (diff) | |
download | lwn-db01ea882bf601252dad57242655da17fd9ad2f5.tar.gz lwn-db01ea882bf601252dad57242655da17fd9ad2f5.zip |
efi: Correct comment on efi_memmap_alloc
Returning zero means success now.
Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Diffstat (limited to 'drivers/firmware/efi/memmap.c')
-rw-r--r-- | drivers/firmware/efi/memmap.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/firmware/efi/memmap.c b/drivers/firmware/efi/memmap.c index 4df55a55da84..cf87dd7bbd25 100644 --- a/drivers/firmware/efi/memmap.c +++ b/drivers/firmware/efi/memmap.c @@ -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) |