]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit
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)
committerKhalid Elmously <khalid.elmously@canonical.com>
Fri, 14 Feb 2020 05:29:37 +0000 (00:29 -0500)
commit0be363f718ac5ea8227f30a8d8f42e8c7ab68529
tree398bbbedd69ebc72d8f1f7348dbce8143a78f1b1
parente7339afa60affb951387afc698af5facbdc3726d
usb: host: xhci-hub: fix extra endianness conversion

BugLink: https://bugs.launchpad.net/bugs/1863019
[ Upstream commit 6269e4c76eacabaea0d0099200ae1a455768d208 ]

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>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Signed-off-by: Kamal Mostafa <kamal@canonical.com>
Signed-off-by: Khalid Elmously <khalid.elmously@canonical.com>
drivers/usb/host/xhci-hub.c