mirror of
https://github.com/fail0verflow/switch-coreboot.git
synced 2025-05-04 01:39:18 -04:00
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:
parent
b2e340594a
commit
bd78825918
1 changed files with 2 additions and 3 deletions
|
@ -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();
|
||||
|
|
Loading…
Add table
Reference in a new issue