diff options
author | Saurabh Karajgaonkar <skarajga@visteon.com> | 2015-08-04 14:04:35 +0000 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2015-08-05 12:37:21 -0700 |
commit | eb82122a665b31ff9c40f1b4b66be71f0ef21bd3 (patch) | |
tree | c818c4a6661245e673103ec3053e37d63ed0b836 /drivers/usb/serial | |
parent | f1cda54cfb71720058cd65b2f1be7f2a86889935 (diff) | |
download | linux-eb82122a665b31ff9c40f1b4b66be71f0ef21bd3.tar.bz2 |
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.c | 10 |
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, |