diff options
author | Johan Hedberg <johan.hedberg@intel.com> | 2015-03-30 23:21:01 +0300 |
---|---|---|
committer | Marcel Holtmann <marcel@holtmann.org> | 2015-03-30 23:20:53 +0200 |
commit | a4368ff3ed3b57e4b5e36d83b75604f68bbcdaad (patch) | |
tree | fadfd6e1b967980891816b1773cf871afebe4065 /net/bluetooth/smp.c | |
parent | 20fa110a54d8070a7d68fb44a6c0ea2d8b09fddc (diff) | |
download | op-kernel-dev-a4368ff3ed3b57e4b5e36d83b75604f68bbcdaad.zip op-kernel-dev-a4368ff3ed3b57e4b5e36d83b75604f68bbcdaad.tar.gz |
Bluetooth: Refactor L2CAP variables into l2cap_ctrl
We're getting very close to the maximum possible size of bt_skb_cb. To
prepare to shrink the struct with the help of a union this patch moves
all L2CAP related variables into the l2cap_ctrl struct. To later add
other 'ctrl' structs the L2CAP one is renamed simple 'l2cap' instead
of 'control'.
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
Diffstat (limited to 'net/bluetooth/smp.c')
-rw-r--r-- | net/bluetooth/smp.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/bluetooth/smp.c b/net/bluetooth/smp.c index 1ec3f66..1910c58 100644 --- a/net/bluetooth/smp.c +++ b/net/bluetooth/smp.c @@ -3017,7 +3017,7 @@ static struct sk_buff *smp_alloc_skb_cb(struct l2cap_chan *chan, return ERR_PTR(-ENOMEM); skb->priority = HCI_PRIO_MAX; - bt_cb(skb)->chan = chan; + bt_cb(skb)->l2cap.chan = chan; return skb; } |