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

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>

authored by

Marcel Holtmann and committed by
Johan Hedberg
a6fb08df 470fe1b5

-3
-1
include/net/bluetooth/bluetooth.h
··· 222 222 __u16 tx_seq; 223 223 __u8 retries; 224 224 __u8 sar; 225 - unsigned short channel; 226 225 __u8 force_active; 227 226 }; 228 227 #define bt_cb(skb) ((struct bt_skb_cb *)((skb)->cb))
-2
net/bluetooth/mgmt.c
··· 911 911 if (!skb) 912 912 return -ENOMEM; 913 913 914 - bt_cb(skb)->channel = HCI_CHANNEL_CONTROL; 915 - 916 914 hdr = (void *) skb_put(skb, sizeof(*hdr)); 917 915 hdr->opcode = cpu_to_le16(event); 918 916 if (hdev)