From 1cd06ba3032d6af776be31148a962829ce8977fd Mon Sep 17 00:00:00 2001 From: yechunliang Date: Thu, 26 Apr 2018 17:32:14 +0800 Subject: [PATCH] efi: clean RuntimeServices code efi runtime service table unused Signed-off-by: Chris Ye --- hypervisor/bsp/uefi/efi/boot.c | 2 -- hypervisor/bsp/uefi/efi/efilinux.h | 1 - 2 files changed, 3 deletions(-) diff --git a/hypervisor/bsp/uefi/efi/boot.c b/hypervisor/bsp/uefi/efi/boot.c index 68c1ee3a2..af7f82f6f 100644 --- a/hypervisor/bsp/uefi/efi/boot.c +++ b/hypervisor/bsp/uefi/efi/boot.c @@ -39,7 +39,6 @@ EFI_SYSTEM_TABLE *sys_table; EFI_BOOT_SERVICES *boot; -EFI_RUNTIME_SERVICES *runtime; extern const uint64_t guest_entry; static inline void hv_jump(EFI_PHYSICAL_ADDRESS hv_start, @@ -339,7 +338,6 @@ efi_main(EFI_HANDLE image, EFI_SYSTEM_TABLE *_table) sys_table = _table; boot = sys_table->BootServices; - runtime = sys_table->RuntimeServices; if (CheckCrc(sys_table->Hdr.HeaderSize, &sys_table->Hdr) != TRUE) return EFI_LOAD_ERROR; diff --git a/hypervisor/bsp/uefi/efi/efilinux.h b/hypervisor/bsp/uefi/efi/efilinux.h index d92ab3e4e..08fc49f90 100644 --- a/hypervisor/bsp/uefi/efi/efilinux.h +++ b/hypervisor/bsp/uefi/efi/efilinux.h @@ -48,7 +48,6 @@ extern EFI_SYSTEM_TABLE *sys_table; extern EFI_BOOT_SERVICES *boot; -extern EFI_RUNTIME_SERVICES *runtime; /** * allocate_pages - Allocate memory pages from the system