USB: serial: io_ti: drop short control-transfer check
authorJohan Hovold <johan@kernel.org>
Mon, 18 Jan 2021 11:14:23 +0000 (12:14 +0100)
committerJohan Hovold <johan@kernel.org>
Mon, 18 Jan 2021 13:26:36 +0000 (14:26 +0100)
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>
drivers/usb/serial/io_ti.c

index c327d4c..0c40626 100644 (file)
@@ -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;
 }