Revert "Bluetooth: btintel: Fix endianness issue for TLV version information"
authorKiran K <kiran.k@intel.com>
Tue, 15 Dec 2020 23:40:38 +0000 (05:10 +0530)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 18 Dec 2020 21:42:42 +0000 (22:42 +0100)
commitac40679139ac46bd22087002904edd04945d23a8
tree0c87f9a74f15f11c301aa241fc7c4d93a14d6784
parent9edd1de7108f9f672a329a5c69ce257cc610c509
Revert "Bluetooth: btintel: Fix endianness issue for TLV version information"

This reverts commit a63f23c9d139377833a139b179793fea79ee198f.

get_unaligned_{le16|le32|le64}(p) is meant to replace code of the form
le16_to_cpu(get_unaligned((__le16 *)p)). There is no need to explicitly
do leXX_to_cpu() if get_unaligned_leXX() is used.

https://lwn.net/Articles/277779/

Reported-by: kernel test robot <lkp@intel.com>
Signed-off-by: Kiran K <kiran.k@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btintel.c