diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2015-03-13 02:11:02 -0700 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-13 12:09:27 +0200 |
commit | a358dc11d80ecaca443aa1fd2fd9d4f3425922e7 (patch) | |
tree | b59d2b813fad4a63b3e33b94e4668b79a6a92885 /net/bluetooth/hci_conn.c | |
parent | a1536da255f16f42b8f069b2769134b32558b265 (diff) | |
download | op-kernel-dev-a358dc11d80ecaca443aa1fd2fd9d4f3425922e7.zip op-kernel-dev-a358dc11d80ecaca443aa1fd2fd9d4f3425922e7.tar.gz |
Bluetooth: Introduce hci_dev_clear_flag helper macro
Instead of manually coding clear_bit on hdev->dev_flags all the time,
use hci_dev_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_conn.c')
-rw-r--r-- | net/bluetooth/hci_conn.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/hci_conn.c b/net/bluetooth/hci_conn.c index c0fd42c..ee5e598 100644 --- a/net/bluetooth/hci_conn.c +++ b/net/bluetooth/hci_conn.c @@ -700,7 +700,7 @@ static void hci_req_directed_advertising(struct hci_request *req, * and write a new random address. The flag will be set back on * as soon as the SET_ADV_ENABLE HCI command completes. */ - clear_bit(HCI_LE_ADV, &hdev->dev_flags); + hci_dev_clear_flag(hdev, HCI_LE_ADV); /* Set require_privacy to false so that the remote device has a * chance of identifying us. |