]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf478514fc7df0661e21048e6c6e8ef55de634c23
tree87343a381a0efe1c162cb2f57498da488e59634f
parenta0eb4080e25ea2f1b37d9515680cdff0c6a2346d
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: c2e34960827b ("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