]> git.dujemihanovic.xyz Git - u-boot.git/commit
usb: usb-uclass.c: Drop le16_to_cpu() as values are already swapped
authorStefan Roese <sr@denx.de>
Tue, 21 Jul 2020 08:46:04 +0000 (10:46 +0200)
committerMarek Vasut <marex@denx.de>
Wed, 5 Aug 2020 07:30:46 +0000 (09:30 +0200)
commitd96f6e1c0b49eb94f78b662e828e557ba943ee54
tree5eeeb748e1e93f075173e901ef65a5c60e6328ac
parent61a1acb55e8e1da71c1c9a0046942b4a945e444c
usb: usb-uclass.c: Drop le16_to_cpu() as values are already swapped

These values are already swapped to CPU endianess, so swapping them
again is a bug. Let's remove the swap here instead.

Signed-off-by: Stefan Roese <sr@denx.de>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Bin Meng <bmeng.cn@gmail.com>
Cc: Bin Meng <bmeng.cn@gmail.com>
Cc: Marek Vasut <marex@denx.de>
drivers/usb/host/usb-uclass.c