projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
9d42820
)
Bluetooth: Remove hlen variable
author
Gustavo Padovan
<gustavo@padovan.org>
Thu, 3 May 2012 07:54:21 +0000
(
04:54
-0300)
committer
Gustavo Padovan
<gustavo@padovan.org>
Wed, 9 May 2012 04:40:52 +0000
(
01:40
-0300)
hlen has a fixed size of L2CAP_HDR_SIZE, use this instead.
Signed-off-by: Gustavo Padovan <gustavo@padovan.org>
Signed-off-by: Johan Hedberg <johan.hedberg@intel.com>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index 02ba11831793ec7c55738749004e22cc9325ec0e..7acd884f1c3e5edfea193e6c95828cea4fe9a114 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-1892,14
+1892,14
@@
static struct sk_buff *l2cap_create_basic_pdu(struct l2cap_chan *chan,
{
struct l2cap_conn *conn = chan->conn;
struct sk_buff *skb;
- int err, count
, hlen = L2CAP_HDR_SIZE
;
+ int err, count;
struct l2cap_hdr *lh;
BT_DBG("chan %p len %d", chan, (int)len);
- count = min_t(unsigned int, (conn->mtu -
hlen
), len);
+ count = min_t(unsigned int, (conn->mtu -
L2CAP_HDR_SIZE
), len);
- skb = chan->ops->alloc_skb(chan, count +
hlen
,
+ skb = chan->ops->alloc_skb(chan, count +
L2CAP_HDR_SIZE
,
msg->msg_flags & MSG_DONTWAIT);
if (IS_ERR(skb))
return skb;