Commit 4357369d authored by Johan Hovold's avatar Johan Hovold Committed by 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: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 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%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment