serial: stm32: Remove unused struct stm32_port txdone element
authorMarek Vasut <marex@denx.de>
Thu, 23 Feb 2023 04:22:51 +0000 (05:22 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 9 Mar 2023 16:16:11 +0000 (17:16 +0100)
The txdone element is only ever assigned, once, and never used. Drop it.

Signed-off-by: Marek Vasut <marex@denx.de>
Link: https://lore.kernel.org/r/20230223042252.95480-1-marex@denx.de
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/stm32-usart.c
drivers/tty/serial/stm32-usart.h

index 767ff9f..bf51e21 100644 (file)
@@ -743,7 +743,6 @@ static void stm32_usart_transmit_chars(struct uart_port *port)
                stm32_usart_tx_interrupt_disable(port);
                if (!stm32_port->hw_flow_control &&
                    port->rs485.flags & SER_RS485_ENABLED) {
-                       stm32_port->txdone = true;
                        stm32_usart_tc_interrupt_enable(port);
                }
        }
index 0ec41a7..903285b 100644 (file)
@@ -203,7 +203,6 @@ struct stm32_port {
        bool hw_flow_control;
        bool swap;               /* swap RX & TX pins */
        bool fifoen;
-       bool txdone;
        int rxftcfg;            /* RX FIFO threshold CFG      */
        int txftcfg;            /* TX FIFO threshold CFG      */
        bool wakeup_src;