From 4357369d024c709d91864af88f02d7ac08d0f470 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Thu, 24 Dec 2009 12:42:07 +0100 Subject: [PATCH] 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 --- drivers/usb/serial/ftdi_sio.c | 5 ++--- 1 file 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; } -- 2.39.5