diff options
author | Paul Menzel <pmenzel@molgen.mpg.de> | 2017-03-13 17:56:17 +0100 |
---|---|---|
committer | Stefan Reinauer <stefan.reinauer@coreboot.org> | 2017-06-06 23:34:19 +0200 |
commit | afbc2c9c0cf0767a95871f18c96b026335cdb55c (patch) | |
tree | b938fc87d1877de20ee6332c2b080a6840bf785c /payloads/nvramcui | |
parent | 7f46fff24c2975f29db7eed3504a7fea846c20d0 (diff) | |
download | coreboot-afbc2c9c0cf0767a95871f18c96b026335cdb55c.tar.xz |
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 <pmenzel@molgen.mpg.de>
Reviewed-on: https://review.coreboot.org/18794
Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Diffstat (limited to 'payloads/nvramcui')
-rw-r--r-- | payloads/nvramcui/nvramcui.c | 5 |
1 files 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(); |