Bluetooth: btusb: Fix existing sparce warning
authorLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 5 Dec 2022 17:58:43 +0000 (09:58 -0800)
committerLuiz Augusto von Dentz <luiz.von.dentz@intel.com>
Mon, 12 Dec 2022 22:19:25 +0000 (14:19 -0800)
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>
drivers/bluetooth/btusb.c

index 422c878..16e0431 100644 (file)
@@ -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;
        }