Skip to content

Commit 935f94c

Browse files
JohnsPonyardbiesheuvel
authored andcommitted
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>
1 parent 4f90742 commit 935f94c

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

drivers/firmware/efi/riscv-runtime.c

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -36,20 +36,12 @@ static bool __init efi_virtmap_init(void)
3636
init_new_context(NULL, &efi_mm);
3737

3838
for_each_efi_memory_desc(md) {
39-
phys_addr_t phys = md->phys_addr;
40-
int ret;
41-
4239
if (!(md->attribute & EFI_MEMORY_RUNTIME))
4340
continue;
4441
if (md->virt_addr == U64_MAX)
4542
return false;
4643

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);
5345
}
5446

5547
if (efi_memattr_apply_permissions(&efi_mm, efi_set_mapping_permissions))

0 commit comments

Comments
 (0)