Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 290937
b: refs/heads/master
c: 6d5922b
h: refs/heads/master
i:
  290935: b9b3318
v: v3
  • Loading branch information
Andrei Emeltchenko authored and Johan Hedberg committed Feb 13, 2012
1 parent 93a4a30 commit 5539f34
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 7 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 5491120e75afe2a7f5b6f3a207de6d99934e5475
refs/heads/master: 6d5922b01b5e8d684dae5baaea596a4a749738e3
9 changes: 3 additions & 6 deletions trunk/net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -1561,13 +1561,12 @@ static struct sk_buff *l2cap_create_connless_pdu(struct l2cap_chan *chan,
struct msghdr *msg, size_t len,
u32 priority)
{
struct sock *sk = chan->sk;
struct l2cap_conn *conn = chan->conn;
struct sk_buff *skb;
int err, count, hlen = L2CAP_HDR_SIZE + L2CAP_PSMLEN_SIZE;
struct l2cap_hdr *lh;

BT_DBG("sk %p len %d priority %u", sk, (int)len, priority);
BT_DBG("chan %p len %d priority %u", chan, (int)len, priority);

count = min_t(unsigned int, (conn->mtu - hlen), len);

Expand Down Expand Up @@ -1597,13 +1596,12 @@ static struct sk_buff *l2cap_create_basic_pdu(struct l2cap_chan *chan,
struct msghdr *msg, size_t len,
u32 priority)
{
struct sock *sk = chan->sk;
struct l2cap_conn *conn = chan->conn;
struct sk_buff *skb;
int err, count, hlen = L2CAP_HDR_SIZE;
struct l2cap_hdr *lh;

BT_DBG("sk %p len %d", sk, (int)len);
BT_DBG("chan %p len %d", chan, (int)len);

count = min_t(unsigned int, (conn->mtu - hlen), len);

Expand Down Expand Up @@ -1632,13 +1630,12 @@ static struct sk_buff *l2cap_create_iframe_pdu(struct l2cap_chan *chan,
struct msghdr *msg, size_t len,
u32 control, u16 sdulen)
{
struct sock *sk = chan->sk;
struct l2cap_conn *conn = chan->conn;
struct sk_buff *skb;
int err, count, hlen;
struct l2cap_hdr *lh;

BT_DBG("sk %p len %d", sk, (int)len);
BT_DBG("chan %p len %d", chan, (int)len);

if (!conn)
return ERR_PTR(-ENOTCONN);
Expand Down

0 comments on commit 5539f34

Please sign in to comment.