mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-01 22:54:01 +00:00
serial: stm32: Remove unused struct stm32_port txdone element
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>
This commit is contained in:
parent
6d12b774c9
commit
b4fd0afaa0
2 changed files with 0 additions and 2 deletions
|
@ -743,7 +743,6 @@ static void stm32_usart_transmit_chars(struct uart_port *port)
|
||||||
stm32_usart_tx_interrupt_disable(port);
|
stm32_usart_tx_interrupt_disable(port);
|
||||||
if (!stm32_port->hw_flow_control &&
|
if (!stm32_port->hw_flow_control &&
|
||||||
port->rs485.flags & SER_RS485_ENABLED) {
|
port->rs485.flags & SER_RS485_ENABLED) {
|
||||||
stm32_port->txdone = true;
|
|
||||||
stm32_usart_tc_interrupt_enable(port);
|
stm32_usart_tc_interrupt_enable(port);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -203,7 +203,6 @@ struct stm32_port {
|
||||||
bool hw_flow_control;
|
bool hw_flow_control;
|
||||||
bool swap; /* swap RX & TX pins */
|
bool swap; /* swap RX & TX pins */
|
||||||
bool fifoen;
|
bool fifoen;
|
||||||
bool txdone;
|
|
||||||
int rxftcfg; /* RX FIFO threshold CFG */
|
int rxftcfg; /* RX FIFO threshold CFG */
|
||||||
int txftcfg; /* TX FIFO threshold CFG */
|
int txftcfg; /* TX FIFO threshold CFG */
|
||||||
bool wakeup_src;
|
bool wakeup_src;
|
||||||
|
|
Loading…
Reference in a new issue