]> git.openfabrics.org - ~shefty/rdma-dev.git/commitdiff
Bluetooth: Remove unneeded bt_cb(skb)->channel variable
authorMarcel Holtmann <marcel@holtmann.org>
Mon, 20 Feb 2012 13:50:31 +0000 (14:50 +0100)
committerJohan Hedberg <johan.hedberg@intel.com>
Mon, 20 Feb 2012 13:55:37 +0000 (15:55 +0200)
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>
include/net/bluetooth/bluetooth.h
net/bluetooth/mgmt.c

index 5ca9219fe940bca026ffd32a887acff9ff4adb80..262ebd1747d4d2d0121f20a5114741d48c8a48fe 100644 (file)
@@ -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))
index 1695d04d927d3291cde81ef9a0c200b2daf6467f..bc71b45ef4e5fd09d7044a6df892ea7d3d74d27a 100644 (file)
@@ -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)