提交 8d6083fe 编写于 作者: M Marcel Holtmann 提交者: Johan Hedberg

Bluetooth: Fix minor coding style issue in set_connectable()

There is a minor coding style violation and so just fix it. No actual
logic has changed.
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
Signed-off-by: NJohan Hedberg <johan.hedberg@intel.com>
上级 4b836f39
...@@ -1264,14 +1264,13 @@ static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data, ...@@ -1264,14 +1264,13 @@ static int set_connectable(struct sock *sk, struct hci_dev *hdev, void *data,
if (test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags) && if (test_bit(HCI_BREDR_ENABLED, &hdev->dev_flags) &&
cp->val != test_bit(HCI_PSCAN, &hdev->flags)) { cp->val != test_bit(HCI_PSCAN, &hdev->flags)) {
if (cp->val) { if (cp->val) {
scan = SCAN_PAGE; scan = SCAN_PAGE;
} else { } else {
scan = 0; scan = 0;
if (test_bit(HCI_ISCAN, &hdev->flags) && if (test_bit(HCI_ISCAN, &hdev->flags) &&
hdev->discov_timeout > 0) hdev->discov_timeout > 0)
cancel_delayed_work(&hdev->discov_off); cancel_delayed_work(&hdev->discov_off);
} }
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册