Skip to content

Commit

Permalink
efi: Correct comment on efi_memmap_alloc
Browse files Browse the repository at this point in the history
[ Commit db01ea8 upstream ]

Returning zero means success now.

Signed-off-by: Liu Zixian <liuzixian4@huawei.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Liu Zixian authored and gregkh committed Jul 5, 2024
1 parent d204bee commit 52dc463
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions drivers/firmware/efi/memmap.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 52dc463

Please sign in to comment.