mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-15 23:25:07 +00:00
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>
This commit is contained in:
parent
90fa41ee4a
commit
f7de9b6426
1 changed files with 0 additions and 7 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue