diff options
-rw-r--r-- | drivers/usb/core/message.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index c4e876050074..0d8f75e94d46 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -219,9 +219,8 @@ int usb_control_msg_send(struct usb_device *dev, __u8 endpoint, __u8 request, if (ret < 0) return ret; - if (ret == size) - return 0; - return -EINVAL; + + return 0; } EXPORT_SYMBOL_GPL(usb_control_msg_send); |