Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4357369d authored by Johan Hovold's avatar Johan Hovold Committed by Greg Kroah-Hartman
Browse files

USB: ftdi_sio: use error code from usb stack in read_latency_timer



Use same semantics as for write_latency_timer.

Signed-off-by: default avatarJohan Hovold <jhovold@gmail.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 551cdbbe
Loading
Loading
Loading
Loading
+2 −3
Original line number Diff line number Diff line
@@ -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;
}