From a07ed262b4283f05702398f7f80b54a276d3401c Mon Sep 17 00:00:00 2001 From: "Anton D. Kachalov" Date: Mon, 3 Aug 2015 13:21:01 +0300 Subject: [PATCH] Revert "Two more places there THRE is used with inverted sense" Signed-off-by: Anton D. Kachalov --- drivers/serial/uart_16550.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/drivers/serial/uart_16550.c b/drivers/serial/uart_16550.c index f3d89cfd7e..5b7401c7a2 100644 --- a/drivers/serial/uart_16550.c +++ b/drivers/serial/uart_16550.c @@ -1030,11 +1030,7 @@ static void u16550_txint(struct uart_dev_s *dev, bool enable) static bool u16550_txready(struct uart_dev_s *dev) { struct u16550_s *priv = (struct u16550_s*)dev->priv; -#ifdef CONFIG_16550_THRNE - return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRNE) == 0); -#else return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) != 0); -#endif } /**************************************************************************** @@ -1048,11 +1044,7 @@ static bool u16550_txready(struct uart_dev_s *dev) static bool u16550_txempty(struct uart_dev_s *dev) { struct u16550_s *priv = (struct u16550_s*)dev->priv; -#ifdef CONFIG_16550_THRNE - return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRNE) == 0); -#else return ((u16550_serialin(priv, UART_LSR_OFFSET) & UART_LSR_THRE) != 0); -#endif } /****************************************************************************