]> git.baikalelectronics.ru Git - kernel.git/commit
Bluetooth: btusb: Fix error return code in btusb_mtk_setup_firmware()
authorWei Yongjun <weiyongjun1@huawei.com>
Wed, 10 Jul 2019 06:12:22 +0000 (06:12 +0000)
committerMarcel Holtmann <marcel@holtmann.org>
Mon, 12 Aug 2019 16:23:49 +0000 (18:23 +0200)
commitf8aa7aec1f8b87bd2a527acdbe6ab957b7aa4766
treeca1a6073ddb13e8ea0e4d50b47dd2aa0f5578498
parent05a54a6230bd877516dd72d6726fbb9785c50338
Bluetooth: btusb: Fix error return code in btusb_mtk_setup_firmware()

Fix to return error code -EINVAL from the error handling
case instead of 0, as done elsewhere in this function.

Fixes: e5391bd07a11 ("Bluetooth: btusb: Add protocol support for MediaTek MT7668U USB devices")
Signed-off-by: Wei Yongjun <weiyongjun1@huawei.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c