aboutsummaryrefslogtreecommitdiffstats
path: root/net/bluetooth
diff options
context:
space:
mode:
authorMarcel Holtmann <marcel@holtmann.org>2015-03-13 05:11:04 -0400
committerJohan Hedberg <johan.hedberg@intel.com>2015-03-13 06:09:31 -0400
commit516018a9c057a7c179dd6b4df917a6f5d43b3547 (patch)
treeeba64aa5bbf4eef7c14058ca4fc59c37324f89c9 /net/bluetooth
parentce05d603af7c9b5be66a1f3358443e20e2a2ae7a (diff)
Bluetooth: Introduce hci_dev_test_and_change_flag helper macro
Instead of manually coding test_and_change_bit on hdev->dev_flags all the time, use hci_dev_test_and_change_flag helper macro. Signed-off-by: Marcel Holtmann <marcel@holtmann.org> Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r--net/bluetooth/mgmt.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c
index c3af3b87dbb5..3c579a45cff0 100644
--- a/net/bluetooth/mgmt.c
+++ b/net/bluetooth/mgmt.c
@@ -6102,7 +6102,7 @@ static int set_external_config(struct sock *sk, struct hci_dev *hdev,
6102 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) { 6102 if (hci_dev_test_flag(hdev, HCI_UNCONFIGURED) == is_configured(hdev)) {
6103 mgmt_index_removed(hdev); 6103 mgmt_index_removed(hdev);
6104 6104
6105 if (test_and_change_bit(HCI_UNCONFIGURED, &hdev->dev_flags)) { 6105 if (hci_dev_test_and_change_flag(hdev, HCI_UNCONFIGURED)) {
6106 hci_dev_set_flag(hdev, HCI_CONFIG); 6106 hci_dev_set_flag(hdev, HCI_CONFIG);
6107 hci_dev_set_flag(hdev, HCI_AUTO_OFF); 6107 hci_dev_set_flag(hdev, HCI_AUTO_OFF);
6108 6108