- use consistent error value ETIMEOUT instead of ETIME

Tested-by: Dave Penkler <dpenk...@gmail.com>
Reviewed-by: Steve Bayless <steve_bayl...@keysight.com>
Signed-off-by: Guido Kiener <guido.kie...@rohde-schwarz.com>
---
 drivers/usb/class/usbtmc.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/usb/class/usbtmc.c b/drivers/usb/class/usbtmc.c
index db58b84d43ee..243e8446b8dd 100644
--- a/drivers/usb/class/usbtmc.c
+++ b/drivers/usb/class/usbtmc.c
@@ -468,7 +468,7 @@ static int usbtmc488_ioctl_read_stb(struct usbtmc_file_data 
*file_data,
 
                if (rv == 0) {
                        dev_dbg(dev, "wait timed out\n");
-                       rv = -ETIME;
+                       rv = -ETIMEDOUT;
                        goto exit;
                }
 
-- 
2.17.1

--
To unsubscribe from this list: send the line "unsubscribe linux-usb" in
the body of a message to majord...@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to