diff options
author | Dave Young <dyoung@redhat.com> | 2013-12-20 05:02:13 -0500 |
---|---|---|
committer | Matt Fleming <matt.fleming@intel.com> | 2013-12-21 08:25:04 -0500 |
commit | 2da6e57cce14a1c3b0692d6f877b72e185110e2e (patch) | |
tree | c61b7a1c39b970963aa21f077a8bfb2c284045e9 /arch/x86/platform/efi | |
parent | 61d066977583803d333f1e7266b8ba772162dda4 (diff) |
x86/efi: Remove unused variables in __map_region()
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>
Diffstat (limited to 'arch/x86/platform/efi')
-rw-r--r-- | arch/x86/platform/efi/efi_64.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c index bf286c386d33..c5a6491d95da 100644 --- a/arch/x86/platform/efi/efi_64.c +++ b/arch/x86/platform/efi/efi_64.c | |||
@@ -148,15 +148,11 @@ void efi_setup_page_tables(void) | |||
148 | static void __init __map_region(efi_memory_desc_t *md, u64 va) | 148 | static void __init __map_region(efi_memory_desc_t *md, u64 va) |
149 | { | 149 | { |
150 | pgd_t *pgd = (pgd_t *)__va(real_mode_header->trampoline_pgd); | 150 | pgd_t *pgd = (pgd_t *)__va(real_mode_header->trampoline_pgd); |
151 | unsigned long pf = 0, size; | 151 | unsigned long pf = 0; |
152 | u64 end; | ||
153 | 152 | ||
154 | if (!(md->attribute & EFI_MEMORY_WB)) | 153 | if (!(md->attribute & EFI_MEMORY_WB)) |
155 | pf |= _PAGE_PCD; | 154 | pf |= _PAGE_PCD; |
156 | 155 | ||
157 | size = md->num_pages << PAGE_SHIFT; | ||
158 | end = va + size; | ||
159 | |||
160 | if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf)) | 156 | if (kernel_map_pages_in_pgd(pgd, md->phys_addr, va, md->num_pages, pf)) |
161 | pr_warn("Error mapping PA 0x%llx -> VA 0x%llx!\n", | 157 | pr_warn("Error mapping PA 0x%llx -> VA 0x%llx!\n", |
162 | md->phys_addr, va); | 158 | md->phys_addr, va); |