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:
ba7aa64
)
Bluetooth: Remove unused err var from l2cap_segment_sdu()
author
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Tue, 29 May 2012 16:29:17 +0000
(13:29 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:15 +0000
(06:34 +0300)
Trivial fix, let the code cleaner.
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Mat Martineau <mathewm@codeaurora.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 136c2af6684be4f8cdf74fb2dd7666f5618fb261..9750204011c67dbb99c6bbc0995d8a9fa41605c0 100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-2068,7
+2068,6
@@
static int l2cap_segment_sdu(struct l2cap_chan *chan,
struct sk_buff *skb;
u16 sdu_len;
size_t pdu_len;
- int err = 0;
u8 sar;
BT_DBG("chan %p, msg %p, len %d", chan, msg, (int)len);
@@
-2127,7
+2126,7
@@
static int l2cap_segment_sdu(struct l2cap_chan *chan,
}
}
- return
err
;
+ return
0
;
}
int l2cap_chan_send(struct l2cap_chan *chan, struct msghdr *msg, size_t len,