mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-11-27 01:11:31 +00:00
Bluetooth: trivial: Use defined PSMLEN instead of magic
Signed-off-by: Andrei Emeltchenko <andrei.emeltchenko@intel.com> Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
This commit is contained in:
parent
2dfa1003cc
commit
0181a70f54
1 changed files with 1 additions and 1 deletions
|
|
@ -5235,7 +5235,7 @@ static void l2cap_recv_frame(struct l2cap_conn *conn, struct sk_buff *skb)
|
||||||
|
|
||||||
case L2CAP_CID_CONN_LESS:
|
case L2CAP_CID_CONN_LESS:
|
||||||
psm = get_unaligned((__le16 *) skb->data);
|
psm = get_unaligned((__le16 *) skb->data);
|
||||||
skb_pull(skb, 2);
|
skb_pull(skb, L2CAP_PSMLEN_SIZE);
|
||||||
l2cap_conless_channel(conn, psm, skb);
|
l2cap_conless_channel(conn, psm, skb);
|
||||||
break;
|
break;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue