summaryrefslogtreecommitdiff
path: root/arch/x86/lib
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2018-08-30 15:43:43 -0600
committerAlexander Graf <agraf@suse.de>2018-09-23 21:55:29 +0200
commit9b5e6396bff5ede22f880c38915da5538e8bd117 (patch)
treed6e83929dc6c3d71548131c6ee65bc7fcff19c52 /arch/x86/lib
parent75cb1cd248690e2c1b1d46081e2a25e6d2aa57f6 (diff)
downloadu-boot-9b5e6396bff5ede22f880c38915da5538e8bd117.tar.gz
u-boot-9b5e6396bff5ede22f880c38915da5538e8bd117.tar.bz2
u-boot-9b5e6396bff5ede22f880c38915da5538e8bd117.zip
efi_loader: simplify ifdefs
Use CONFIG_IS_ENABLED(EFI_LOADER) to avoid explicitly checking CONFIG_SPL too. This simplifies the conditional. Signed-off-by: Stephen Warren <swarren@nvidia.com> Signed-off-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'arch/x86/lib')
-rw-r--r--arch/x86/lib/e820.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/x86/lib/e820.c b/arch/x86/lib/e820.c
index 8b34f677d9..d6ae2c4e9d 100644
--- a/arch/x86/lib/e820.c
+++ b/arch/x86/lib/e820.c
@@ -36,7 +36,7 @@ __weak unsigned int install_e820_map(unsigned int max_entries,
return 4;
}
-#if defined(CONFIG_EFI_LOADER) && !defined(CONFIG_SPL_BUILD)
+#if CONFIG_IS_ENABLED(EFI_LOADER)
void efi_add_known_memory(void)
{
struct e820_entry e820[E820MAX];
@@ -72,4 +72,4 @@ void efi_add_known_memory(void)
efi_add_memory_map(start, pages, type, false);
}
}
-#endif /* defined(EFI_LOADER) && !defined(CONFIG_SPL_BUILD) */
+#endif /* CONFIG_IS_ENABLED(EFI_LOADER) */