summaryrefslogtreecommitdiffstats
path: root/arch/x86/platform/efi/efi_64.c
diff options
context:
space:
mode:
authorMatt Fleming <matt.fleming@intel.com>2013-12-21 16:09:46 +0000
committerMatt Fleming <matt.fleming@intel.com>2013-12-29 13:09:08 +0000
commit518548abd61808ea1e31614ccbdae34d3c32dfa4 (patch)
tree194de8fb84969924942299ed5ea5cfe20256f05e /arch/x86/platform/efi/efi_64.c
parent77ea8c948953a90401e436e7c05973b2d5529804 (diff)
downloadtalos-op-linux-518548abd61808ea1e31614ccbdae34d3c32dfa4.tar.gz
talos-op-linux-518548abd61808ea1e31614ccbdae34d3c32dfa4.zip
x86/efi: Delete superfluous global variables
There's no need to save the runtime map details in global variables, the values are only required to pass to efi_runtime_map_setup(). And because 'nr_efi_runtime_map' isn't needed, get_nr_runtime_map() can be deleted along with 'efi_data_len'. Cc: Dave Young <dyoung@redhat.com> Signed-off-by: Matt Fleming <matt.fleming@intel.com>
Diffstat (limited to 'arch/x86/platform/efi/efi_64.c')
-rw-r--r--arch/x86/platform/efi/efi_64.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/arch/x86/platform/efi/efi_64.c b/arch/x86/platform/efi/efi_64.c
index 324b65103851..6284f158a47d 100644
--- a/arch/x86/platform/efi/efi_64.c
+++ b/arch/x86/platform/efi/efi_64.c
@@ -232,5 +232,4 @@ void __iomem *__init efi_ioremap(unsigned long phys_addr, unsigned long size,
void __init parse_efi_setup(u64 phys_addr, u32 data_len)
{
efi_setup = phys_addr + sizeof(struct setup_data);
- efi_data_len = data_len - sizeof(struct setup_data);
}
OpenPOWER on IntegriCloud