summaryrefslogtreecommitdiff
path: root/drivers/bluetooth/btusb.c
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-12-05 20:58:43 +0300
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>2022-12-13 01:19:25 +0300
commit42d3b43e3f64ba4fec6c849980b88f47ae2e3318 (patch)
tree0c95cd7bb1d66d13188fa1529a3ccf4059ff593a /drivers/bluetooth/btusb.c
parentcb3648a78e51c90fc95b99677450145119a9675c (diff)
downloadlinux-42d3b43e3f64ba4fec6c849980b88f47ae2e3318.tar.xz
Bluetooth: btusb: Fix existing sparce warning
This fix the following warnings detect with make W=1 C=1: drivers/bluetooth/btusb.c:3426:28: warning: cast to restricted __le32 Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
Diffstat (limited to 'drivers/bluetooth/btusb.c')
-rw-r--r--drivers/bluetooth/btusb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/bluetooth/btusb.c b/drivers/bluetooth/btusb.c
index 422c878a9500..16e043166055 100644
--- a/drivers/bluetooth/btusb.c
+++ b/drivers/bluetooth/btusb.c
@@ -3423,7 +3423,7 @@ static int btusb_setup_qca_load_rampatch(struct hci_dev *hdev,
if (ver_rom & ~0xffffU) {
rver_rom_high = le16_to_cpu(rver->rom_version_high);
- rver_rom = le32_to_cpu(rver_rom_high << 16 | rver_rom_low);
+ rver_rom = rver_rom_high << 16 | rver_rom_low;
} else {
rver_rom = rver_rom_low;
}