projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d7347f3
)
Bluetooth: Remove unnecessary usage of hci_pend_le_conn_add
author
Johan Hedberg
<johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:24 +0000
(12:37 +0300)
committer
Marcel Holtmann
<marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000
(11:58 +0200)
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>
net/bluetooth/hci_event.c
patch
|
blob
|
blame
|
history
diff --git
a/net/bluetooth/hci_event.c
b/net/bluetooth/hci_event.c
index 0ccdf9df2188976217a8e0da36830105c80e8268..9e0b2e888bbac79b15fb5bfa493e0330cb197d08 100644
(file)
--- 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: