Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

-7
-7
drivers/usb/serial/mxuport.c
··· 261 261 return status; 262 262 } 263 263 264 - if (status != size) { 265 - dev_err(&serial->interface->dev, 266 - "%s - short write (%d / %zd)\n", 267 - __func__, status, size); 268 - return -EIO; 269 - } 270 - 271 264 return 0; 272 265 } 273 266