Skip to contentSkip to conversation

Bluetooth: Remove unneeded bt_cb(skb)->channel variable

PATCH In review Marcel Holtmann 1 participant 1 message Feb 20, 2012

Subsystems (2)
lore
Share & tools
lore

Marcel Holtmann

author maintainer
#0 lore raw

PATCH 3/8 Bluetooth: Remove unneeded bt_cb(skb)->channel variable

The bt_cb(skb)->channel was only needed to make hci_send_to_sock() be used for HCI raw and control sockets. Since they have now separate sending functions this is no longer needed.

---
 include/net/bluetooth/bluetooth.h |    1 -
 net/bluetooth/mgmt.c              |    2 --
 2 files changed, 0 insertions(+), 3 deletions(-)
include/net/bluetooth/bluetooth.h +0 -1
index 5ca9219..262ebd1 100644
@@ -222,7 +222,6 @@ struct bt_skb_cb {
 	__u16 tx_seq;
 	__u8 retries;
 	__u8 sar;
-	unsigned short channel;
 	__u8 force_active;
 };
 #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
net/bluetooth/mgmt.c +0 -2
index 1695d04..bc71b45 100644
@@ -911,8 +911,6 @@ static int mgmt_event(u16 event, struct hci_dev *hdev, void *data,
 	if (!skb)
 		return -ENOMEM;
 
-	bt_cb(skb)->channel = HCI_CHANNEL_CONTROL;
-
 	hdr = (void *) skb_put(skb, sizeof(*hdr));
 	hdr->opcode = cpu_to_le16(event);
 	if (hdev)
Signature · 1 line
1.7.7.6