usb: serial: mxuport: Simplify return statement
authorSaurabh Karajgaonkar <skarajga@visteon.com>
Tue, 4 Aug 2015 14:04:35 +0000 (14:04 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Aug 2015 19:37:21 +0000 (12:37 -0700)
Replace redundant variable use in return statement.

Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/serial/mxuport.c

index 460a40669967855cfeea7c6cc911064822c6882a..31a8b47f1ac65f325ce285aa80bce66bf74298d7 100644 (file)
@@ -1137,13 +1137,9 @@ static int mxuport_port_probe(struct usb_serial_port *port)
                return err;
 
        /* Set interface (RS-232) */
-       err = mxuport_send_ctrl_urb(serial, RQ_VENDOR_SET_INTERFACE,
-                                   MX_INT_RS232,
-                                   port->port_number);
-       if (err)
-               return err;
-
-       return 0;
+       return mxuport_send_ctrl_urb(serial, RQ_VENDOR_SET_INTERFACE,
+                                    MX_INT_RS232,
+                                    port->port_number);
 }
 
 static int mxuport_alloc_write_urb(struct usb_serial *serial,