From 018aa8eb8d02b594c20e44353d5650b5a7e3e1a1 Mon Sep 17 00:00:00 2001 From: Abdelatif Guettouche Date: Wed, 20 Oct 2021 10:49:06 +0200 Subject: [PATCH] esp32c3_serial.c: Remove the stub implementations of the early serial functions as they are only called when the configuration is enabled. Signed-off-by: Abdelatif Guettouche --- arch/risc-v/src/esp32c3/esp32c3_serial.c | 27 +----------------------- 1 file changed, 1 insertion(+), 26 deletions(-) diff --git a/arch/risc-v/src/esp32c3/esp32c3_serial.c b/arch/risc-v/src/esp32c3/esp32c3_serial.c index 49a41fd7a0..f172339550 100644 --- a/arch/risc-v/src/esp32c3/esp32c3_serial.c +++ b/arch/risc-v/src/esp32c3/esp32c3_serial.c @@ -1090,33 +1090,8 @@ int up_putc(int ch) return ch; } -#else /* HAVE_UART_DEVICE */ - -/**************************************************************************** - * Name: riscv_earlyserialinit, riscv_serialinit, and up_putc - * - * Description: - * Stubs that may be needed. These stubs will be used if all UARTs are - * disabled. In that case, the logic in common/up_initialize() is not - * smart enough to know that there are not UARTs and will still expect - * these interfaces to be provided. - * - ****************************************************************************/ - -void riscv_earlyserialinit(void) -{ -} - -void riscv_serialinit(void) -{ -} - -int up_putc(int ch) -{ - return ch; -} - #endif /* HAVE_UART_DEVICE */ + #else /* USE_SERIALDRIVER */ /****************************************************************************