diff options
author | Marcel Holtmann <marcel@holtmann.org> | 2012-02-20 08:50:31 -0500 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-02-20 08:55:37 -0500 |
commit | a6fb08dfe8654e399c9bbca34be914e213560b5e (patch) | |
tree | 15165238e6d8193a36ccac71b642836b8dfff76a /net/bluetooth | |
parent | 470fe1b540fb50ba8ce01e0ac985602e8fbb108c (diff) |
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.
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Diffstat (limited to 'net/bluetooth')
-rw-r--r-- | net/bluetooth/mgmt.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/net/bluetooth/mgmt.c b/net/bluetooth/mgmt.c index 1695d04d927d..bc71b45ef4e5 100644 --- a/net/bluetooth/mgmt.c +++ b/net/bluetooth/mgmt.c | |||
@@ -911,8 +911,6 @@ static int mgmt_event(u16 event, struct hci_dev *hdev, void *data, | |||
911 | if (!skb) | 911 | if (!skb) |
912 | return -ENOMEM; | 912 | return -ENOMEM; |
913 | 913 | ||
914 | bt_cb(skb)->channel = HCI_CHANNEL_CONTROL; | ||
915 | |||
916 | hdr = (void *) skb_put(skb, sizeof(*hdr)); | 914 | hdr = (void *) skb_put(skb, sizeof(*hdr)); |
917 | hdr->opcode = cpu_to_le16(event); | 915 | hdr->opcode = cpu_to_le16(event); |
918 | if (hdev) | 916 | if (hdev) |