提交 06946a66 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

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: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 3827d876
...@@ -340,7 +340,7 @@ static int ch341_open(struct tty_struct *tty, struct usb_serial_port *port) ...@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册