usb: host: xhci-hub: fix extra endianness conversion
authorRuslan Bilovol <ruslan.bilovol@gmail.com>
Sun, 7 Jul 2019 12:17:19 +0000 (15:17 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 25 Jul 2019 09:10:55 +0000 (11:10 +0200)
commit6269e4c76eacabaea0d0099200ae1a455768d208
tree38bc34377cb45defb8b4ec02cafe78751fd8fca8
parent3114bc89c0217254d3df10a42eab6b6ca00f547c
usb: host: xhci-hub: fix extra endianness conversion

Don't do extra cpu_to_le32 conversion for
put_unaligned_le32 because it is already implemented
in this function.

Fixes sparse error:
xhci-hub.c:1152:44: warning: incorrect type in argument 1 (different base types)
xhci-hub.c:1152:44:    expected unsigned int [usertype] val
xhci-hub.c:1152:44:    got restricted __le32 [usertype]

Fixes: 395f540 "xhci: support new USB 3.1 hub request to get extended port status"
Cc: Mathias Nyman <mathias.nyman@linux.intel.com>
Signed-off-by: Ruslan Bilovol <ruslan.bilovol@gmail.com>
Link: https://lore.kernel.org/r/1562501839-26522-1-git-send-email-ruslan.bilovol@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/usb/host/xhci-hub.c