From: Liu Zixian Date: Tue, 14 Jun 2022 11:48:05 +0000 (+0800) Subject: efi: Correct comment on efi_memmap_alloc X-Git-Tag: block-6.0-2022-08-12~37^2~16 X-Git-Url: https://git.kernel.dk/?a=commitdiff_plain;h=db01ea882bf601252dad57242655da17fd9ad2f5;p=linux-block.git efi: Correct comment on efi_memmap_alloc Returning zero means success now. Signed-off-by: Liu Zixian Signed-off-by: Ard Biesheuvel --- 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)