projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
90fa41e
)
USB: serial: mxuport: drop short control-transfer check
author
Johan Hovold
<johan@kernel.org>
Mon, 18 Jan 2021 11:14:21 +0000
(12:14 +0100)
committer
Johan Hovold
<johan@kernel.org>
Mon, 18 Jan 2021 13:26:14 +0000
(14:26 +0100)
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>
drivers/usb/serial/mxuport.c
patch
|
blob
|
history
diff --git
a/drivers/usb/serial/mxuport.c
b/drivers/usb/serial/mxuport.c
index 5d38c2a0f5902a0119464fc65e92e8c50e33de31..eb45a9b0005c8886786a0f8f73369543cb23b13c 100644
(file)
--- 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;
}