Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit c0419024 authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: ti_usb_3410_5052: remove redundant drain from break_ctl



Remove redundant drain, which has already been handled by the tty-layer,
from break_ctl.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent 2c992cd7
Loading
Loading
Loading
Loading
+0 −2
Original line number Original line Diff line number Diff line
@@ -976,8 +976,6 @@ static void ti_break(struct tty_struct *tty, int break_state)
	if (tport == NULL)
	if (tport == NULL)
		return;
		return;


	ti_drain(tport, (tport->tp_closing_wait*HZ)/100);

	status = ti_write_byte(port, tport->tp_tdev,
	status = ti_write_byte(port, tport->tp_tdev,
		tport->tp_uart_base_addr + TI_UART_OFFSET_LCR,
		tport->tp_uart_base_addr + TI_UART_OFFSET_LCR,
		TI_LCR_BREAK, break_state == -1 ? TI_LCR_BREAK : 0);
		TI_LCR_BREAK, break_state == -1 ? TI_LCR_BREAK : 0);