]> git.karo-electronics.de Git - linux-beck.git/commitdiff
Bluetooth: Remove unused hci_pend_le_conn_del() function
authorJohan Hedberg <johan.hedberg@intel.com>
Fri, 4 Jul 2014 09:37:22 +0000 (12:37 +0300)
committerMarcel Holtmann <marcel@holtmann.org>
Fri, 4 Jul 2014 09:58:09 +0000 (11:58 +0200)
Now that there are no-longer any users of the hci_pend_le_conn_del()
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 9670f4c66ee3040f82f377abfbe6bac192ccc360..758146c513d3ead9d8825740ee93a8ae219526b7 100644 (file)
@@ -871,7 +871,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_pend_le_conn_del(struct hci_dev *hdev, struct hci_conn_params *params);
 void hci_pend_le_conns_clear(struct hci_dev *hdev);
 
 void hci_update_background_scan(struct hci_dev *hdev);
index 3b0da6eeb44992d86999fbc0125a310a3022c3db..6eadde820333664215717882227ee2a00910858d 100644 (file)
@@ -3460,16 +3460,6 @@ void hci_pend_le_conn_add(struct hci_dev *hdev, struct hci_conn_params *params)
        hci_update_background_scan(hdev);
 }
 
-/* This function requires the caller holds hdev->lock */
-void hci_pend_le_conn_del(struct hci_dev *hdev, struct hci_conn_params *params)
-{
-       list_del_init(&params->action);
-
-       BT_DBG("addr %pMR (type %u)", &params->addr, params->addr_type);
-
-       hci_update_background_scan(hdev);
-}
-
 /* This function requires the caller holds hdev->lock */
 void hci_pend_le_conns_clear(struct hci_dev *hdev)
 {