Bluetooth: btusb: Fix incorrect type in assignment and uninitialized symbol
authormark-yw.chen <mark-yw.chen@mediatek.com>
Tue, 23 Feb 2021 06:27:40 +0000 (14:27 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 26 Feb 2021 20:17:43 +0000 (21:17 +0100)
commit201cf3976c065fc47ab260302d06690f73587df9
tree68c54acba1e80cac3ab18165ce8f2433f9d4d74b
parent3edc5782fb64c97946f4f321141cb4f46c9da825
Bluetooth: btusb: Fix incorrect type in assignment and uninitialized symbol

Warnings: drivers/bluetooth/btusb.c:3775 btusb_mtk_setup() error:
uninitialized symbol 'fw_version'.
-> add initial value for fw_version.

Warnings: sparse: sparse: incorrect type in assignment (different base
types)
-> add le32_to_cpu to fix incorrect type in assignment.

Signed-off-by: mark-yw.chen <mark-yw.chen@mediatek.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c