diff options
author | Johan Hovold <jhovold@gmail.com> | 2009-12-24 12:42:07 +0100 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 14:53:36 -0800 |
commit | 4357369d024c709d91864af88f02d7ac08d0f470 (patch) | |
tree | 1ef50be4be537300fe5b5f6209b0f34fc24ff243 /drivers/usb/serial | |
parent | 551cdbbeb118bd5ed301f8749aef69219284399b (diff) | |
download | blackbird-op-linux-4357369d024c709d91864af88f02d7ac08d0f470.tar.gz blackbird-op-linux-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')
-rw-r--r-- | drivers/usb/serial/ftdi_sio.c | 5 |
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; } |