Bluetooth: Remove unused hci_pend_le_conn_add function
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:25 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000 (11:58 +0200)
Since there are no more users of this function we can simply go ahead
and remove it.

Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
include/net/bluetooth/hci_core.h
net/bluetooth/hci_core.c

index 9208b18cb1e96dfa122b0948bb6e26acd86178b8..c2bc9180cb7971cead3a507d79ebfbb622d80fbb 100644 (file)
@@ -870,7 +870,6 @@ void hci_conn_params_clear_enabled(struct hci_dev *hdev);
 
 struct hci_conn_params *hci_pend_le_conn_lookup(struct hci_dev *hdev,
                                                bdaddr_t *addr, u8 addr_type);
-void hci_pend_le_conn_add(struct hci_dev *hdev, struct hci_conn_params *params);
 
 void hci_update_background_scan(struct hci_dev *hdev);
 
index 3a1a25dcb2bc4706fb24a2e3ecc7b0ac941118b4..38a0c5cd0ee4b29351a97449c15480170235c100 100644 (file)
@@ -3461,16 +3461,6 @@ struct hci_conn_params *hci_pend_le_conn_lookup(struct hci_dev *hdev,
 }
 
 /* This function requires the caller holds hdev->lock */
-void hci_pend_le_conn_add(struct hci_dev *hdev, struct hci_conn_params *params)
-{
-       list_del_init(&params->action);
-       list_add(&params->action, &hdev->pend_le_conns);
-
-       BT_DBG("addr %pMR (type %u)", &params->addr, params->addr_type);
-
-       hci_update_background_scan(hdev);
-}
-
 struct hci_conn_params *hci_conn_params_add(struct hci_dev *hdev,
                                            bdaddr_t *addr, u8 addr_type)
 {