diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2014-07-04 11:37:24 +0200 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2014-07-04 11:58:09 +0200 |
commit | 418025d1c390b3979f0fd3bb639f0a15026d0530 (patch) | |
tree | bb9e57149aa2823af119ebd9eded1b215996c295 /net/bluetooth/hci_event.c | |
parent | Bluetooth: Fix clearing and restarting all LE actions on power cycle (diff) | |
download | linux-418025d1c390b3979f0fd3bb639f0a15026d0530.tar.xz linux-418025d1c390b3979f0fd3bb639f0a15026d0530.zip |
Bluetooth: Remove unnecessary usage of hci_pend_le_conn_add
This is the last place using hci_pend_le_conn_add() and we can more
just as simply manipulate the list directly here.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/hci_event.c')
-rw-r--r-- | net/bluetooth/hci_event.c | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/net/bluetooth/hci_event.c b/net/bluetooth/hci_event.c index 0ccdf9df2188..9e0b2e888bba 100644 --- a/net/bluetooth/hci_event.c +++ b/net/bluetooth/hci_event.c @@ -2209,7 +2209,9 @@ static void hci_disconn_complete_evt(struct hci_dev *hdev, struct sk_buff *skb) /* Fall through */ case HCI_AUTO_CONN_ALWAYS: - hci_pend_le_conn_add(hdev, params); + list_del_init(¶ms->action); + list_add(¶ms->action, &hdev->pend_le_conns); + hci_update_background_scan(hdev); break; default: |