mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-28 14:44:10 +08:00
USB: serial: io_ti: drop short control-transfer check
There's no need to check for short control transfers when sending data so remove the redundant sanity check. Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
This commit is contained in:
parent
2dc0e7c375
commit
66db94786e
@ -283,11 +283,7 @@ static int ti_vsend_sync(struct usb_device *dev, u8 request, u16 value,
|
||||
value, index, data, size, timeout);
|
||||
if (status < 0)
|
||||
return status;
|
||||
if (status != size) {
|
||||
dev_dbg(&dev->dev, "%s - wanted to write %d, but only wrote %d\n",
|
||||
__func__, size, status);
|
||||
return -ECOMM;
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user