efi/x86: Replace #ifdefs with IS_ENABLED() checks
authorArd Biesheuvel <ardb@kernel.org>
Sun, 2 Feb 2020 10:22:41 +0000 (11:22 +0100)
committerArd Biesheuvel <ardb@kernel.org>
Sun, 23 Feb 2020 20:59:42 +0000 (21:59 +0100)
commita570b0624b3f73a6cc57c529e506300c639912e2
tree7f241911d71277c796a3016d31bbc0f6c271bb68
parent14b60cc8e0ead866cd25b4e51945c6267ca9936c
efi/x86: Replace #ifdefs with IS_ENABLED() checks

When possible, IS_ENABLED() conditionals are preferred over #ifdefs,
given that the latter hide the code from the compiler entirely, which
reduces build test coverage when the option is not enabled.

So replace an instance in the x86 efi startup code.

Signed-off-by: Ard Biesheuvel <ardb@kernel.org>
arch/x86/platform/efi/efi.c