mirror of
https://github.com/Fishwaldo/linux-bl808.git
synced 2025-06-07 15:15:29 +00:00
USB: ch341: forward USB errors to USB serial core
All error messages from stack in open are being forwarded except for one call to usb_submit_urb. Change this for consistency. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
3827d8762f
commit
06946a6654
1 changed files with 1 additions and 1 deletions
|
@ -340,7 +340,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port)
|
||||||
dev_err(&port->dev, "%s - failed submitting interrupt urb,"
|
dev_err(&port->dev, "%s - failed submitting interrupt urb,"
|
||||||
" error %d\n", __func__, r);
|
" error %d\n", __func__, r);
|
||||||
ch341_close(port);
|
ch341_close(port);
|
||||||
return -EPROTO;
|
goto out;
|
||||||
}
|
}
|
||||||
|
|
||||||
r = usb_serial_generic_open(tty, port);
|
r = usb_serial_generic_open(tty, port);
|
||||||
|
|
Loading…
Add table
Reference in a new issue