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

index 5d38c2a..eb45a9b 100644 (file)
@@ -261,13 +261,6 @@ static int mxuport_send_ctrl_data_urb(struct usb_serial *serial,
                return status;
        }
 
-       if (status != size) {
-               dev_err(&serial->interface->dev,
-                       "%s - short write (%d / %zd)\n",
-                       __func__, status, size);
-               return -EIO;
-       }
-
        return 0;
 }