diff mbox series

[1/6] USB: serial: mxuport: drop short control-transfer check

Message ID 20210118111426.5147-2-johan@kernel.org (mailing list archive)
State Accepted
Commit f7de9b64265faafe96c2533ddfcc1ad7b2e8080d
Headers show
Series USB: serial: cp210x: add software flow-control support | expand

Commit Message

Johan Hovold Jan. 18, 2021, 11:14 a.m. UTC
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(-)
diff mbox series

Patch

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;
 }