Bluetooth: Make hci_blacklist_clear function static
Subsystems (2)
Marcel Holtmann
maintainerPATCH 1/1 Bluetooth: Make hci_blacklist_clear function static
The hci_blacklist_clear function is not used outside of hci_core.c and can be made static.
Signed-off-by Marcel Holtmann <[email protected]>
--- include/net/bluetooth/hci_core.h | 1 - net/bluetooth/hci_core.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
include/net/bluetooth/hci_core.h +0 -1
@@ -796,7 +796,6 @@ int hci_inquiry(void __user *arg);struct bdaddr_list *hci_blacklist_lookup (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type); -void hci_blacklist_clear (struct hci_dev *hdev);int hci_blacklist_add (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type);int hci_blacklist_del (struct hci_dev *hdev,bdaddr_t *bdaddr,u8 type);
net/bluetooth/hci_core.c +1 -1
@@ -3237,7 +3237,7 @@ struct bdaddr_list *hci_blacklist_lookup(struct hci_dev *hdev,return NULL ; } -void hci_blacklist_clear (struct hci_dev *hdev) +static void hci_blacklist_clear (struct hci_dev *hdev) {struct list_head *p, *n;
Signature · 1 line
1.8.5.3
Johan Hedberg
AppliedHi Marcel,
Quoted 8 lines · Marcel Holtmann
The
hci_blacklist_clearfunction is not used outside ofhci_core.cand can be made static.Signed-off-by Marcel Holtmann <[email protected]>--- include/net/bluetooth/hci_core.h | 1 - net/bluetooth/hci_core.c | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-)
Applied to bluetooth-next. Thanks.
Johan