diff options
Diffstat (limited to 'drivers/usb/serial/iuu_phoenix.c')
-rw-r--r-- | drivers/usb/serial/iuu_phoenix.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/usb/serial/iuu_phoenix.c b/drivers/usb/serial/iuu_phoenix.c index 6aca631a407a..64d0ffd4440b 100644 --- a/drivers/usb/serial/iuu_phoenix.c +++ b/drivers/usb/serial/iuu_phoenix.c | |||
@@ -1168,15 +1168,14 @@ static int iuu_open(struct tty_struct *tty, struct usb_serial_port *port) | |||
1168 | port->write_urb->transfer_buffer, 1, | 1168 | port->write_urb->transfer_buffer, 1, |
1169 | read_rxcmd_callback, port); | 1169 | read_rxcmd_callback, port); |
1170 | result = usb_submit_urb(port->write_urb, GFP_KERNEL); | 1170 | result = usb_submit_urb(port->write_urb, GFP_KERNEL); |
1171 | |||
1172 | if (result) { | 1171 | if (result) { |
1173 | dev_err(&port->dev, "%s - failed submitting read urb," | 1172 | dev_err(&port->dev, "%s - failed submitting read urb," |
1174 | " error %d\n", __func__, result); | 1173 | " error %d\n", __func__, result); |
1175 | iuu_close(port); | 1174 | iuu_close(port); |
1176 | return -EPROTO; | ||
1177 | } else { | 1175 | } else { |
1178 | dbg("%s - rxcmd OK", __func__); | 1176 | dbg("%s - rxcmd OK", __func__); |
1179 | } | 1177 | } |
1178 | |||
1180 | return result; | 1179 | return result; |
1181 | } | 1180 | } |
1182 | 1181 | ||