x86/efi: Remove unused variables in __map_region()
authorDave Young <dyoung@redhat.com>
Fri, 20 Dec 2013 10:02:13 +0000 (18:02 +0800)
committerMatt Fleming <matt.fleming@intel.com>
Sat, 21 Dec 2013 13:25:04 +0000 (13:25 +0000)
variables size and end is useless in this function, thus remove them.

Reported-by: Toshi Kani <toshi.kani@hp.com>
Tested-by: Toshi Kani <toshi.kani@hp.com>
Signed-off-by: Dave Young <dyoung@redhat.com>
Acked-by: Borislav Petkov <bp@suse.de>
Signed-off-by: Matt Fleming <matt.fleming@intel.com>
arch/x86/platform/efi/efi_64.c

index bf286c386d330272fdb2e4d7cef99ddf108d489c..c5a6491d95da51bfbeeeda8f2037ed892a69e314 100644 (file)
@@ -148,15 +148,11 @@ void efi_setup_page_tables(void)
 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;
+       unsigned long pf = 0;
 
        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",
                           md->phys_addr, va);