Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Bluetooth: Remove hci_conn_hash_lookup_state()

Since commit 4aa42119d971 ("Bluetooth: Remove pending ACL connection
attempts") this function is unused.

Signed-off-by: Yue Haibing <yuehaibing@huawei.com>
Reviewed-by: Simon Horman <horms@kernel.org>
Signed-off-by: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>

authored by

Yue Haibing and committed by
Luiz Augusto von Dentz
70c672f9 7ed1d46c

-20
-20
include/net/bluetooth/hci_core.h
··· 1420 1420 return NULL; 1421 1421 } 1422 1422 1423 - static inline struct hci_conn *hci_conn_hash_lookup_state(struct hci_dev *hdev, 1424 - __u8 type, __u16 state) 1425 - { 1426 - struct hci_conn_hash *h = &hdev->conn_hash; 1427 - struct hci_conn *c; 1428 - 1429 - rcu_read_lock(); 1430 - 1431 - list_for_each_entry_rcu(c, &h->list, list) { 1432 - if (c->type == type && c->state == state) { 1433 - rcu_read_unlock(); 1434 - return c; 1435 - } 1436 - } 1437 - 1438 - rcu_read_unlock(); 1439 - 1440 - return NULL; 1441 - } 1442 - 1443 1423 typedef void (*hci_conn_func_t)(struct hci_conn *conn, void *data); 1444 1424 static inline void hci_conn_hash_list_state(struct hci_dev *hdev, 1445 1425 hci_conn_func_t func, __u8 type,