提交 4357369d 编写于 作者: J Johan Hovold 提交者: Greg Kroah-Hartman

USB: ftdi_sio: use error code from usb stack in read_latency_timer

Use same semantics as for write_latency_timer.
Signed-off-by: NJohan Hovold <jhovold@gmail.com>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 551cdbbe
......@@ -1193,10 +1193,9 @@ static int read_latency_timer(struct usb_serial_port *port)
0, priv->interface,
(char *) &latency, 1, WDR_TIMEOUT);
if (rv < 0) {
if (rv < 0)
dev_err(&port->dev, "Unable to read latency timer: %i\n", rv);
return -EIO;
} else
else
priv->latency = latency;
return rv;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册