diff options
author | Johan Hovold <johan@kernel.org> | 2021-01-18 12:14:23 +0100 |
---|---|---|
committer | Johan Hovold <johan@kernel.org> | 2021-01-18 14:26:36 +0100 |
commit | 66db94786e94fe2c060ab31bd8ed0308810ab610 (patch) | |
tree | d8564d0672cc339bb22a1c178db2b303556b2f11 | |
parent | USB: serial: upd78f0730: drop short control-transfer check (diff) | |
download | linux-66db94786e94fe2c060ab31bd8ed0308810ab610.tar.xz linux-66db94786e94fe2c060ab31bd8ed0308810ab610.zip |
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>
-rw-r--r-- | drivers/usb/serial/io_ti.c | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/drivers/usb/serial/io_ti.c b/drivers/usb/serial/io_ti.c index c327d4cf7928..0c4062698603 100644 --- a/drivers/usb/serial/io_ti.c +++ b/drivers/usb/serial/io_ti.c @@ -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; } |