]> Gentwo Git Trees - linux/.git/commitdiff
efi/riscv: Remove the useless failure return message print
authorQiang Ma <maqianga@uniontech.com>
Fri, 31 Oct 2025 02:43:28 +0000 (10:43 +0800)
committerArd Biesheuvel <ardb@kernel.org>
Tue, 11 Nov 2025 18:09:56 +0000 (19:09 +0100)
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>
drivers/firmware/efi/riscv-runtime.c

index fa71cd898120302c8e8787f1032c9f60733b02c6..4a2588358be24ec2a0f669590166922c7717cd94 100644 (file)
@@ -36,20 +36,12 @@ static bool __init efi_virtmap_init(void)
        init_new_context(NULL, &efi_mm);
 
        for_each_efi_memory_desc(md) {
-               phys_addr_t phys = md->phys_addr;
-               int ret;
-
                if (!(md->attribute & EFI_MEMORY_RUNTIME))
                        continue;
                if (md->virt_addr == U64_MAX)
                        return false;
 
-               ret = efi_create_mapping(&efi_mm, md);
-               if (ret) {
-                       pr_warn("  EFI remap %pa: failed to create mapping (%d)\n",
-                               &phys, ret);
-                       return false;
-               }
+               efi_create_mapping(&efi_mm, md);
        }
 
        if (efi_memattr_apply_permissions(&efi_mm, efi_set_mapping_permissions))