From ca9a98e6e2589503051a3eb7d2192037435c9fd9 Mon Sep 17 00:00:00 2001 From: Andy Ross Date: Fri, 18 May 2018 13:54:52 -0700 Subject: [PATCH] samples/subsys/console: Remove unused tx_sem semaphore This was declared but unused. And recent toolchains have apparently started warning on it leading to sanitycheck failures. Signed-off-by: Andy Ross --- subsys/console/getchar.c | 1 - 1 file changed, 1 deletion(-) diff --git a/subsys/console/getchar.c b/subsys/console/getchar.c index 748e56f099c..67a858890c6 100644 --- a/subsys/console/getchar.c +++ b/subsys/console/getchar.c @@ -23,7 +23,6 @@ static K_SEM_DEFINE(uart_sem, 0, UINT_MAX); static u8_t uart_ringbuf[CONFIG_CONSOLE_GETCHAR_BUFSIZE]; static u8_t i_get, i_put; -static K_SEM_DEFINE(tx_sem, 0, UINT_MAX); static u8_t tx_ringbuf[CONFIG_CONSOLE_PUTCHAR_BUFSIZE]; static u8_t tx_get, tx_put;