diff options
author | Johan Hovold <jhovold@gmail.com> | 2009-12-24 06:42:07 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-03-02 17:53:36 -0500 |
commit | 4357369d024c709d91864af88f02d7ac08d0f470 (patch) | |
tree | 1ef50be4be537300fe5b5f6209b0f34fc24ff243 /drivers/usb/serial/ftdi_sio.c | |
parent | 551cdbbeb118bd5ed301f8749aef69219284399b (diff) |
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.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) | |||
1193 | 0, priv->interface, | 1193 | 0, priv->interface, |
1194 | (char *) &latency, 1, WDR_TIMEOUT); | 1194 | (char *) &latency, 1, WDR_TIMEOUT); |
1195 | 1195 | ||
1196 | if (rv < 0) { | 1196 | if (rv < 0) |
1197 | dev_err(&port->dev, "Unable to read latency timer: %i\n", rv); | 1197 | dev_err(&port->dev, "Unable to read latency timer: %i\n", rv); |
1198 | return -EIO; | 1198 | else |
1199 | } else | ||
1200 | priv->latency = latency; | 1199 | priv->latency = latency; |
1201 | return rv; | 1200 | return rv; |
1202 | } | 1201 | } |