Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

efi/riscv: Remove the useless failure return message print

In the efi_create_mapping() in arch/riscv/kernel/efi.c,
the return value is always 0, and this debug message
is unnecessary. So, remove it.

Signed-off-by: Qiang Ma <maqianga@uniontech.com>
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>

authored by

Qiang Ma and committed by
Ard Biesheuvel
935f94cc 4f90742d

+1 -9
+1 -9
drivers/firmware/efi/riscv-runtime.c
··· 36 36 init_new_context(NULL, &efi_mm); 37 37 38 38 for_each_efi_memory_desc(md) { 39 - phys_addr_t phys = md->phys_addr; 40 - int ret; 41 - 42 39 if (!(md->attribute & EFI_MEMORY_RUNTIME)) 43 40 continue; 44 41 if (md->virt_addr == U64_MAX) 45 42 return false; 46 43 47 - ret = efi_create_mapping(&efi_mm, md); 48 - if (ret) { 49 - pr_warn(" EFI remap %pa: failed to create mapping (%d)\n", 50 - &phys, ret); 51 - return false; 52 - } 44 + efi_create_mapping(&efi_mm, md); 53 45 } 54 46 55 47 if (efi_memattr_apply_permissions(&efi_mm, efi_set_mapping_permissions))