summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2009-12-24 14:42:07 +0300
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-03 01:53:36 +0300
commit4357369d024c709d91864af88f02d7ac08d0f470 (patch)
tree1ef50be4be537300fe5b5f6209b0f34fc24ff243
parent551cdbbeb118bd5ed301f8749aef69219284399b (diff)
downloadlinux-4357369d024c709d91864af88f02d7ac08d0f470.tar.xz
USB: ftdi_sio: use error code from usb stack in read_latency_timer
Use same semantics as for write_latency_timer. Signed-off-by: Johan Hovold <jhovold@gmail.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
-rw-r--r--drivers/usb/serial/ftdi_sio.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c
index 44c5b7717fe8..ec901ed5d93c 100644
--- a/drivers/usb/serial/ftdi_sio.c
+++ b/drivers/usb/serial/ftdi_sio.c
@@ -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;
}