Bluetooth: remove struct hci_chan_hash
Only the list member of the struct was used, so we now fold it into
hci_conn.
Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
diff --git a/net/bluetooth/hci_core.c b/net/bluetooth/hci_core.c
index ce3727e..700d0ab 100644
--- a/net/bluetooth/hci_core.c
+++ b/net/bluetooth/hci_core.c
@@ -2125,7 +2125,6 @@
BT_DBG("%s", hdev->name);
list_for_each_entry(conn, &h->list, list) {
- struct hci_chan_hash *ch;
struct hci_chan *tmp;
if (conn->type != type)
@@ -2136,9 +2135,7 @@
conn_num++;
- ch = &conn->chan_hash;
-
- list_for_each_entry(tmp, &ch->list, list) {
+ list_for_each_entry(tmp, &conn->chan_list, list) {
struct sk_buff *skb;
if (skb_queue_empty(&tmp->data_q))
@@ -2200,7 +2197,6 @@
BT_DBG("%s", hdev->name);
list_for_each_entry(conn, &h->list, list) {
- struct hci_chan_hash *ch;
struct hci_chan *chan;
if (conn->type != type)
@@ -2211,8 +2207,7 @@
num++;
- ch = &conn->chan_hash;
- list_for_each_entry(chan, &ch->list, list) {
+ list_for_each_entry(chan, &conn->chan_list, list) {
struct sk_buff *skb;
if (chan->sent) {