From: Johan Hovold Date: Thu, 24 Dec 2009 11:42:07 +0000 (+0100) Subject: USB: ftdi_sio: use error code from usb stack in read_latency_timer X-Git-Tag: v2.6.34-rc1~215^2~156 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4357369d024c709d91864af88f02d7ac08d0f470;p=platform%2Fupstream%2Fkernel-adaptation-pc.git 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 Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/serial/ftdi_sio.c b/drivers/usb/serial/ftdi_sio.c index 44c5b77..ec901ed 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; }