USB: core: drop short-transfer check from usb_control_msg_send()
authorJohan Hovold <johan@kernel.org>
Fri, 4 Dec 2020 08:51:09 +0000 (09:51 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 4 Dec 2020 15:48:42 +0000 (16:48 +0100)
commitbaf7df456b3848e4b6f8648e754e3a0f77fe700e
tree9f3c7d2ff8e07a185ecb1c52bd7fe0b50f9b9f2e
parentcf5fbe02042e52a5a3d93223770db39002b313c6
USB: core: drop short-transfer check from usb_control_msg_send()

A failure to send a complete control message is always an error so
there's no need to check for short transfers in usb_control_msg_send().

Signed-off-by: Johan Hovold <johan@kernel.org>
Link: https://lore.kernel.org/r/20201204085110.20055-3-johan@kernel.org
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/core/message.c