diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-11-10 07:44:53 (GMT) |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-11-19 16:50:28 (GMT) |
commit | 030e7f8141a262e32dc064d7cf12377d769d45c2 (patch) | |
tree | dde18cba056831623ed79663dd23a628bb96ca75 /net/bluetooth | |
parent | ac71494934c475e3f51e5e3e64a12f57618d82a4 (diff) | |
download | linux-030e7f8141a262e32dc064d7cf12377d769d45c2.tar.xz |
Bluetooth: Remove unnecessary call to hci_update_background_scan
The hci_conn_params_clear_all() function is only called from
hci_unregister_dev() at which point it's completely futile to try to
do any LE scanning updates. Simply remove this unnecessary function
call. At the same time we can make the function static since it's only
accessed from within the same c-file.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/hci_core.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c index bc97fc6..ea648e9 100644 --- a/net/bluetooth/hci_core.c +++ b/net/bluetooth/hci_core.c @@ -3070,15 +3070,13 @@ void hci_conn_params_clear_disabled(struct hci_dev *hdev) } /* This function requires the caller holds hdev->lock */ -void hci_conn_params_clear_all(struct hci_dev *hdev) +static void hci_conn_params_clear_all(struct hci_dev *hdev) { struct hci_conn_params *params, *tmp; list_for_each_entry_safe(params, tmp, &hdev->le_conn_params, list) hci_conn_params_free(params); - hci_update_background_scan(hdev); - BT_DBG("All LE connection parameters were removed"); } |