aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/usb/serial/ftdi_sio.c
diff options
context:
space:
mode:
authorJohan Hovold <jhovold@gmail.com>2009-12-24 12:42:07 +0100
committerGreg Kroah-Hartman <gregkh@suse.de>2010-03-02 14:53:36 -0800
commit4357369d024c709d91864af88f02d7ac08d0f470 (patch)
tree1ef50be4be537300fe5b5f6209b0f34fc24ff243 /drivers/usb/serial/ftdi_sio.c
parent551cdbbeb118bd5ed301f8749aef69219284399b (diff)
downloadmrst-s0i3-test-4357369d024c709d91864af88f02d7ac08d0f470.tar.gz
mrst-s0i3-test-4357369d024c709d91864af88f02d7ac08d0f470.tar.xz
mrst-s0i3-test-4357369d024c709d91864af88f02d7ac08d0f470.zip
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>
Diffstat (limited to 'drivers/usb/serial/ftdi_sio.c')
-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 44c5b7717fe..ec901ed5d93 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;
}