From f7de9b64265faafe96c2533ddfcc1ad7b2e8080d Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Mon, 18 Jan 2021 12:14:21 +0100 Subject: USB: serial: mxuport: drop short control-transfer check There's no need to check for short control transfers when sending data so remove the redundant sanity check. Reviewed-by: Greg Kroah-Hartman Signed-off-by: Johan Hovold --- drivers/usb/serial/mxuport.c | 7 ------- 1 file changed, 7 deletions(-) (limited to 'drivers/usb/serial') 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; } -- cgit