efi/libstub/x86: simplify efi_is_native()
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sat, 3 Oct 2020 06:03:56 +0000 (08:03 +0200)
committerArd 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

index bc9758e..7673dc8 100644 (file)
@@ -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();
 }