diff options
author | Guido Kiener <guido@kiener-muenchen.de> | 2018-07-18 10:45:35 +0200 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-07-21 08:22:15 +0200 |
commit | 19e6c57e96169cb3275fd40b7898454560b9ebba (patch) | |
tree | 428db7314c83d9a515049d0a7ae8949564b816fa /drivers/usb/class/usbtmc.c | |
parent | usb: usbtmc: Support Read Status Byte with SRQ per file (diff) | |
download | linux-19e6c57e96169cb3275fd40b7898454560b9ebba.tar.xz linux-19e6c57e96169cb3275fd40b7898454560b9ebba.zip |
usb: usbtmc: use consistent timeout error
- use consistent error value ETIMEOUT instead of ETIME
Tested-by: Dave Penkler <dpenkler@gmail.com>
Reviewed-by: Steve Bayless <steve_bayless@keysight.com>
Signed-off-by: Guido Kiener <guido.kiener@rohde-schwarz.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb/class/usbtmc.c')
-rw-r--r-- | drivers/usb/class/usbtmc.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |