There's no need to check for short control transfers when sending data so remove the redundant sanity check. Signed-off-by: Johan Hovold <johan@xxxxxxxxxx> --- drivers/usb/serial/mxuport.c | 7 ------- 1 file changed, 7 deletions(-) diff --git a/drivers/usb/serial/mxuport.c b/drivers/usb/serial/mxuport.c index 5d38c2a0f590..eb45a9b0005c 100644 --- a/drivers/usb/serial/mxuport.c +++ b/drivers/usb/serial/mxuport.c @@ -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; } -- 2.26.2