From: Johan Hovold Date: Thu, 18 Apr 2013 15:33:22 +0000 (+0200) Subject: USB: ti_usb_3410_5052: remove redundant drain from break_ctl X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=c0419024332a73f299bdd7a6875a00cf3942a054;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git 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: Johan Hovold Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ti_usb_3410_5052.c b/drivers/usb/serial/ti_usb_3410_5052.c index 062b6d872ea..6a40823e85c 100644 --- a/drivers/usb/serial/ti_usb_3410_5052.c +++ b/drivers/usb/serial/ti_usb_3410_5052.c @@ -976,8 +976,6 @@ static void ti_break(struct tty_struct *tty, int break_state) if (tport == NULL) return; - ti_drain(tport, (tport->tp_closing_wait*HZ)/100); - status = ti_write_byte(port, tport->tp_tdev, tport->tp_uart_base_addr + TI_UART_OFFSET_LCR, TI_LCR_BREAK, break_state == -1 ? TI_LCR_BREAK : 0);