diff options
author | Heinrich Schuchardt <xypron.glpk@gmx.de> | 2020-10-03 08:03:56 +0200 |
---|---|---|
committer | Ard Biesheuvel <ardb@kernel.org> | 2020-10-26 08:06:36 +0100 |
commit | bc13809f1c47245cd584f4ad31ad06a5c5f40e54 (patch) | |
tree | 920fa0f95cef8d571d996b4dd8570b03c8b46ef0 | |
parent | 3650b228f83adda7e5ee532e2b90429c03f7b9ec (diff) | |
download | linux-bc13809f1c47245cd584f4ad31ad06a5c5f40e54.tar.gz linux-bc13809f1c47245cd584f4ad31ad06a5c5f40e54.tar.bz2 linux-bc13809f1c47245cd584f4ad31ad06a5c5f40e54.zip |
efi/libstub/x86: simplify efi_is_native()
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>
-rw-r--r-- | arch/x86/include/asm/efi.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index bc9758ef292e..7673dc833232 100644 --- 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(); } |