[PATCH v2 3/4] USB: mxu11x0: remove duplicated set_termios call

From: Mathieu OTHACEHE
Date: Mon Jan 04 2016 - 13:50:07 EST


The function mxu1_set_termios is called twice in open callback.
Only the first call is necessary.

Signed-off-by: Mathieu OTHACEHE <m.othacehe@xxxxxxxxx>
---
drivers/usb/serial/mxu11x0.c | 3 ---
1 file changed, 3 deletions(-)

diff --git a/drivers/usb/serial/mxu11x0.c b/drivers/usb/serial/mxu11x0.c
index 7ad2727..6326cda 100644
--- a/drivers/usb/serial/mxu11x0.c
+++ b/drivers/usb/serial/mxu11x0.c
@@ -830,9 +830,6 @@ static int mxu1_open(struct tty_struct *tty, struct usb_serial_port *port)
usb_clear_halt(serial->dev, port->write_urb->pipe);
usb_clear_halt(serial->dev, port->read_urb->pipe);

- if (tty)
- mxu1_set_termios(tty, port, NULL);
-
status = usb_serial_generic_open(tty, port);
if (status)
goto unlink_int_urb;
--
2.6.4

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/