From afbc2c9c0cf0767a95871f18c96b026335cdb55c Mon Sep 17 00:00:00 2001 From: Paul Menzel Date: Mon, 13 Mar 2017 17:56:17 +0100 Subject: [PATCH] nvramcui: 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: I988fa9379e8c748013a67ef29fa908b4d9a970ad Signed-off-by: Paul Menzel Reviewed-on: https://review.coreboot.org/18794 Tested-by: build bot (Jenkins) Reviewed-by: Stefan Reinauer --- payloads/nvramcui/nvramcui.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/payloads/nvramcui/nvramcui.c b/payloads/nvramcui/nvramcui.c index 9e12b9763b..675e00292f 100644 --- a/payloads/nvramcui/nvramcui.c +++ b/payloads/nvramcui/nvramcui.c @@ -176,9 +176,8 @@ int main(void) int ch, done; int i; -#if IS_ENABLED(CONFIG_LP_USB) - usb_initialize(); -#endif + if (IS_ENABLED(CONFIG_LP_USB)) + usb_initialize(); /* coreboot data structures */ lib_get_sysinfo();