USB: usb_wwan: remove redundant modem-control request
authorJohan Hovold <jhovold@gmail.com>
Mon, 26 May 2014 17:23:21 +0000 (19:23 +0200)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 27 May 2014 22:04:06 +0000 (15:04 -0700)
The tty-port implementation has already made sure that DTR/RTS have been
raised by calling dtr_rts so remove the redundant call from open.

Signed-off-by: Johan Hovold <jhovold@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/usb_wwan.c

index daaa5d7959465a7b46f89a63fba7a2d30e6bccf7..9aeaccfd4f7436fcbbc4a87815eec866d699b159 100644 (file)
@@ -408,9 +408,6 @@ int usb_wwan_open(struct tty_struct *tty, struct usb_serial_port *port)
                }
        }
 
-       if (intfdata->send_setup)
-               intfdata->send_setup(port);
-
        spin_lock_irq(&intfdata->susp_lock);
        portdata->opened = 1;
        if (++intfdata->open_ports == 1)