From: Wei Yongjun <[email protected]>

The variable end is initialized but never used
otherwise, so remove the unused variable.

Signed-off-by: Wei Yongjun <[email protected]>
---
 arch/x86/platform/efi/efi_64.c | 2 --
 1 file changed, 2 deletions(-)

diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index bf286c3..8ce7663 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -149,13 +149,11 @@ static void __init __map_region(efi_memory_desc_t *md, 
u64 va)
 {
        pgd_t *pgd = (pgd_t *)__va(real_mode_header->trampoline_pgd);
        unsigned long pf = 0, size;
-       u64 end;
 
        if (!(md->attribute & EFI_MEMORY_WB))
                pf |= _PAGE_PCD;
 
        size = md->num_pages << PAGE_SHIFT;
-       end  = va + size;
 
        if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf))
                pr_warn("Error mapping PA 0x%llx -> VA 0x%llx!\n",

--
To unsubscribe from this list: send the line "unsubscribe linux-efi" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to