diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-13 10:11:05 +0100 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-13 11:09:32 +0100 |
commit | a69d89272698d1c31ccb78348562af6461cf1eb7 (patch) | |
tree | 1474d52857b9bbc0af82385754037e5633f24b1d /net/bluetooth/hci_event.c | |
parent | Bluetooth: Introduce hci_dev_test_and_change_flag helper macro (diff) | |
download | linux-a69d89272698d1c31ccb78348562af6461cf1eb7.tar.xz linux-a69d89272698d1c31ccb78348562af6461cf1eb7.zip |
Bluetooth: Introduce hci_dev_test_and_clear_flag helper macro
Instead of manually coding test_and_clear_bit on hdev->dev_flags all the
time, use hci_dev_test_and_clear_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/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 808b78cf8ad0..4958b24ae5c7 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -1226,8 +1226,7 @@ static void hci_cc_le_set_scan_enable(struct hci_dev *hdev, * been disabled because of active scanning, so * re-enable it again if necessary. */ - if (test_and_clear_bit(HCI_LE_SCAN_INTERRUPTED, - &hdev->dev_flags)) + if (hci_dev_test_and_clear_flag(hdev, HCI_LE_SCAN_INTERRUPTED)) hci_discovery_set_state(hdev, DISCOVERY_STOPPED); else if (!hci_dev_test_flag(hdev, HCI_LE_ADV) && hdev->discovery.state == DISCOVERY_FINDING) |