projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
3650b22
)
efi/libstub/x86: simplify efi_is_native()
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sat, 3 Oct 2020 06:03:56 +0000
(08:03 +0200)
committer
Ard Biesheuvel
<ardb@kernel.org>
Mon, 26 Oct 2020 07:06:36 +0000
(08:06 +0100)
CONFIG_EFI_MIXED depends on CONFIG_X86_64=y.
There is no need to check CONFIG_X86_64 again.
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Link:
https://lore.kernel.org/r/20201003060356.4913-1-xypron.glpk@gmx.de
Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/include/asm/efi.h
patch
|
blob
|
history
diff --git
a/arch/x86/include/asm/efi.h
b/arch/x86/include/asm/efi.h
index bc9758ef292ef1a10fc6542f391bbdb9b82db058..7673dc833232e22bff9804fc32df43731bd0d669 100644
(file)
--- a/
arch/x86/include/asm/efi.h
+++ b/
arch/x86/include/asm/efi.h
@@
-213,8
+213,6
@@
static inline bool efi_is_64bit(void)
static inline bool efi_is_native(void)
{
- if (!IS_ENABLED(CONFIG_X86_64))
- return true;
return efi_is_64bit();
}