Message ID | 20210118111426.5147-2-johan@kernel.org |
---|---|
State | New |
Headers | show |
Series | USB: serial: cp210x: add software flow-control support | expand |
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; }
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@kernel.org> --- drivers/usb/serial/mxuport.c | 7 ------- 1 file changed, 7 deletions(-)