diff options
author | Ruslan Bilovol <ruslan.bilovol@gmail.com> | 2018-05-25 19:11:40 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-31 12:43:14 +0200 |
commit | 48b73d0fa11aa8613d51f7be61d2fa7f0ab05fd3 (patch) | |
tree | 519858dacd90693c35de76982396d3242f18a35a /drivers/usb | |
parent | de19ca6fd72c7dd45ad82403e7b3fe9c74ef6767 (diff) | |
download | linux-rpi-48b73d0fa11aa8613d51f7be61d2fa7f0ab05fd3.tar.gz linux-rpi-48b73d0fa11aa8613d51f7be61d2fa7f0ab05fd3.tar.bz2 linux-rpi-48b73d0fa11aa8613d51f7be61d2fa7f0ab05fd3.zip |
usb: core: message: remove extra endianness conversion in usb_set_isoch_delay
No need to do extra endianness conversion in
usb_set_isoch_delay because it is already done
in usb_control_msg()
Fixes: 886ee36e7205 ("usb: core: add support for USB_REQ_SET_ISOCH_DELAY")
Cc: Dmytro Panchenko <dmytro.panchenko@globallogic.com>
Cc: Felipe Balbi <felipe.balbi@linux.intel.com>
Cc: stable <stable@vger.kernel.org> # v4.16+
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/usb')
-rw-r--r-- | drivers/usb/core/message.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/usb/core/message.c b/drivers/usb/core/message.c index 0c11d40a12bc..7b137003c2be 100644 --- a/drivers/usb/core/message.c +++ b/drivers/usb/core/message.c @@ -940,7 +940,7 @@ int usb_set_isoch_delay(struct usb_device *dev) return usb_control_msg(dev, usb_sndctrlpipe(dev, 0), USB_REQ_SET_ISOCH_DELAY, USB_DIR_OUT | USB_TYPE_STANDARD | USB_RECIP_DEVICE, - cpu_to_le16(dev->hub_delay), 0, NULL, 0, + dev->hub_delay, 0, NULL, 0, USB_CTRL_SET_TIMEOUT); } |