summaryrefslogtreecommitdiff
path: root/drivers/usb/serial/mxuport.c
diff options
context:
space:
mode:
authorJohan Hovold <johan@kernel.org>2021-01-18 14:14:21 +0300
committerJohan Hovold <johan@kernel.org>2021-01-18 16:26:14 +0300
commitf7de9b64265faafe96c2533ddfcc1ad7b2e8080d (patch)
tree56363730f60318444ab1245fec8f37f043b84907 /drivers/usb/serial/mxuport.c
parent90fa41ee4a671d678fcd2c3f0ffdcaa10a1b080b (diff)
downloadlinux-f7de9b64265faafe96c2533ddfcc1ad7b2e8080d.tar.xz
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 <gregkh@linuxfoundation.org> Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'drivers/usb/serial/mxuport.c')
-rw-r--r--drivers/usb/serial/mxuport.c7
1 files changed, 0 insertions, 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;
}