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>
This commit is contained in:
Nicola Corna 2017-03-14 10:26:58 +01:00 committed by Martin Roth
parent 5f98f98098
commit 71693ba43f
1 changed files with 2 additions and 3 deletions

View File

@ -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();