usb: core: message: remove extra endianness conversion in usb_set_isoch_delay
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Fri, 25 May 2018 16:11:40 +0000 (19:11 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 31 May 2018 10:43:14 +0000 (12:43 +0200)
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>
drivers/usb/core/message.c

index 0c11d40a12bcfa9a012edb8a4bf0d41d6a844365..7b137003c2be6a14910b9261d3bab28acc982053 100644 (file)
@@ -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);
 }