Bluetooth: btusb: Fix a unspported condition to set available debug features
authorJun Miao <jun.miao@windriver.com>
Fri, 9 Jul 2021 13:46:25 +0000 (21:46 +0800)
committerMarcel Holtmann <marcel@holtmann.org>
Thu, 22 Jul 2021 14:16:19 +0000 (16:16 +0200)
commit20a831f04f1526f2c3442efd3dece8630216b5d2
tree87343a381a0efe1c162cb2f57498da488e59634f
parent59da0b38bc2ea570ede23a3332ecb3e7574ce6b2
Bluetooth: btusb: Fix a unspported condition to set available debug features

When reading the support debug features failed, there are not available
features init. Continue to set the debug features is illogical, we should
skip btintel_set_debug_features(), even if check it by "if (!features)".

Fixes: c453b10c2b28 ("Bluetooth: btusb: Configure Intel debug feature based on available support")
Signed-off-by: Jun Miao <jun.miao@windriver.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
drivers/bluetooth/btusb.c