summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/lib/coreboot_table.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/lib/coreboot_table.c b/src/lib/coreboot_table.c
index cb85a1819a..9264efb6d2 100644
--- a/src/lib/coreboot_table.c
+++ b/src/lib/coreboot_table.c
@@ -466,12 +466,11 @@ static uintptr_t write_coreboot_table(uintptr_t rom_table_end)
lb_mainboard(head);
/* Record the serial ports and consoles */
-#if CONFIG(CONSOLE_SERIAL)
- uart_fill_lb(head);
-#endif
-#if CONFIG(CONSOLE_USB)
- lb_add_console(LB_TAG_CONSOLE_EHCI, head);
-#endif
+ if (CONFIG(CONSOLE_SERIAL))
+ uart_fill_lb(head);
+
+ if (CONFIG(CONSOLE_USB))
+ lb_add_console(LB_TAG_CONSOLE_EHCI, head);
/* Record our various random string information */
lb_strings(head);