From: Heinrich Schuchardt Date: Sat, 3 Oct 2020 06:03:56 +0000 (+0200) Subject: efi/libstub/x86: simplify efi_is_native() X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=bc13809f1c47245cd584f4ad31ad06a5c5f40e54;p=linux.git 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 Link: https://lore.kernel.org/r/20201003060356.4913-1-xypron.glpk@gmx.de Signed-off-by: Ard Biesheuvel --- diff --git a/arch/x86/include/asm/efi.h b/arch/x86/include/asm/efi.h index bc9758ef292ef..7673dc833232e 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(); }