]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit104e7f1e2c6a7740860f2c75d56ebe8b3e1c321b
tree7f241911d71277c796a3016d31bbc0f6c271bb68
parent1ef2b0a31ba7a8c3fad972f44ad136b2f305c70d
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