summaryrefslogtreecommitdiff
path: root/payloads/coreinfo
diff options
context:
space:
mode:
authorNicola Corna <nicola@corna.info>2017-03-14 10:26:58 +0100
committerMartin Roth <martinroth@google.com>2017-06-27 17:16:03 +0000
commit71693ba43fa8f0d0e7560a3c0a0c465fbd49ce1a (patch)
tree343ae79630a4d05441e41875cd7975512bf8750b /payloads/coreinfo
parent5f98f980985b22070713a2792b4f9905c4189fa6 (diff)
downloadcoreboot-71693ba43fa8f0d0e7560a3c0a0c465fbd49ce1a.tar.xz
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 <nicola@corna.info> Reviewed-on: https://review.coreboot.org/18811 Tested-by: build bot (Jenkins) <no-reply@coreboot.org> Reviewed-by: Martin Roth <martinroth@google.com>
Diffstat (limited to 'payloads/coreinfo')
-rw-r--r--payloads/coreinfo/coreinfo.c5
1 files changed, 2 insertions, 3 deletions
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();