From 71693ba43fa8f0d0e7560a3c0a0c465fbd49ce1a Mon Sep 17 00:00:00 2001 From: Nicola Corna Date: Tue, 14 Mar 2017 10:26:58 +0100 Subject: coreinfo: Use regular `if` over `#if` for `IS_ENABLED` When using the regular `if` construct, the compiler will check the guarded code independently from the condition. Change-Id: I00c5c7ae3720f75aa9415edb94cd2ce76cee8aee Signed-off-by: Nicola Corna Reviewed-on: https://review.coreboot.org/18811 Tested-by: build bot (Jenkins) Reviewed-by: Martin Roth --- payloads/coreinfo/coreinfo.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'payloads/coreinfo') diff --git a/payloads/coreinfo/coreinfo.c b/payloads/coreinfo/coreinfo.c index 3fb2f7296a..718c58972f 100644 --- a/payloads/coreinfo/coreinfo.c +++ b/payloads/coreinfo/coreinfo.c @@ -291,9 +291,8 @@ int main(void) { int i, j; -#if IS_ENABLED(CONFIG_LP_USB) - usb_initialize(); -#endif + if (IS_ENABLED(CONFIG_LP_USB)) + usb_initialize(); initscr(); -- cgit v1.2.3