summaryrefslogtreecommitdiff
path: root/drivers/usb/serial
diff options
context:
space:
mode:
authorSaurabh Karajgaonkar <skarajga@visteon.com>2015-08-04 14:04:35 +0000
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2015-08-05 12:37:21 -0700
commiteb82122a665b31ff9c40f1b4b66be71f0ef21bd3 (patch)
treec818c4a6661245e673103ec3053e37d63ed0b836 /drivers/usb/serial
parentf1cda54cfb71720058cd65b2f1be7f2a86889935 (diff)
usb: serial: mxuport: Simplify return statement
Replace redundant variable use in return statement. Signed-off-by: Saurabh Karajgaonkar <skarajga@visteon.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/serial')
-rw-r--r--drivers/usb/serial/mxuport.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/drivers/usb/serial/mxuport.c b/drivers/usb/serial/mxuport.c
index 460a40669967..31a8b47f1ac6 100644
--- a/drivers/usb/serial/mxuport.c
+++ b/drivers/usb/serial/mxuport.c
@@ -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,