From d11b1ba9cb7badda91bc0bc84585057fcd429c4d Mon Sep 17 00:00:00 2001 From: chao an Date: Fri, 19 Apr 2024 10:33:58 +0800 Subject: [PATCH] drivers/serial/16550: remove unused function drivers/serial/uart_16550.c:690:20: warning: unused function 'u16550_restoreuartint' [-Wunused-function] static inline void u16550_restoreuartint(FAR struct u16550_s *priv, ^ Signed-off-by: chao an --- drivers/serial/uart_16550.c | 11 ----------- 1 file changed, 11 deletions(-) diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index 418a91bca4..8d5d3ccc85 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -683,17 +683,6 @@ static inline void u16550_disableuartint(FAR struct u16550_s *priv, u16550_serialout(priv, UART_IER_OFFSET, priv->ier); } -/**************************************************************************** - * Name: u16550_restoreuartint - ****************************************************************************/ - -static inline void u16550_restoreuartint(FAR struct u16550_s *priv, - uint32_t ier) -{ - priv->ier |= ier & UART_IER_ALLIE; - u16550_serialout(priv, UART_IER_OFFSET, priv->ier); -} - /**************************************************************************** * Name: u16550_enablebreaks ****************************************************************************/