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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
4f3c8d6edd
commit
19e6c57e96
@@ -468,7 +468,7 @@ static int usbtmc488_ioctl_read_stb(struct usbtmc_file_data *file_data,
|
|||||||
|
|
||||||
if (rv == 0) {
|
if (rv == 0) {
|
||||||
dev_dbg(dev, "wait timed out\n");
|
dev_dbg(dev, "wait timed out\n");
|
||||||
rv = -ETIME;
|
rv = -ETIMEDOUT;
|
||||||
goto exit;
|
goto exit;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user