UPSTREAM: 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.

BUG=none
BRANCH=none
TEST=none

Change-Id: Ib96966f0b9a22f751c0e359ceaa2c4503cc4d914
Signed-off-by: Patrick Georgi <pgeorgi@google.com>
Original-Commit-Id: afbc2c9c0c
Original-Change-Id: I988fa9379e8c748013a67ef29fa908b4d9a970ad
Original-Signed-off-by: Paul Menzel <pmenzel@molgen.mpg.de>
Original-Reviewed-on: https://review.coreboot.org/18794
Original-Tested-by: build bot (Jenkins) <no-reply@coreboot.org>
Original-Reviewed-by: Stefan Reinauer <stefan.reinauer@coreboot.org>
Reviewed-on: https://chromium-review.googlesource.com/528253
Commit-Ready: Patrick Georgi <pgeorgi@chromium.org>
Tested-by: Patrick Georgi <pgeorgi@chromium.org>
Reviewed-by: Patrick Georgi <pgeorgi@chromium.org>
This commit is contained in:
Paul Menzel 2017-03-13 17:56:17 +01:00 committed by chrome-bot
parent b2e340594a
commit bd78825918

View file

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