projects
/
kernel
/
kernel-generic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
401bb1f
)
Bluetooth: Remove double check for BT_CONNECTED
author
Gustavo Padovan
<gustavo.padovan@collabora.co.uk>
Mon, 21 May 2012 16:58:21 +0000
(13:58 -0300)
committer
Johan Hedberg
<johan.hedberg@intel.com>
Tue, 5 Jun 2012 03:34:06 +0000
(06:34 +0300)
The same check is done just before call l2cap_streaming_send()
Signed-off-by: Gustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: Mat Martineau <mathewm@codeaurora.org>
Signed-off-by: Marcel Holtmann <marcel@holtmann.org>
net/bluetooth/l2cap_core.c
patch
|
blob
|
history
diff --git
a/net/bluetooth/l2cap_core.c
b/net/bluetooth/l2cap_core.c
index
c85a3a2
..
5bf8287
100644
(file)
--- a/
net/bluetooth/l2cap_core.c
+++ b/
net/bluetooth/l2cap_core.c
@@
-1693,9
+1693,6
@@
static int l2cap_streaming_send(struct l2cap_chan *chan,
BT_DBG("chan %p, skbs %p", chan, skbs);
- if (chan->state != BT_CONNECTED)
- return -ENOTCONN;
-
skb_queue_splice_tail_init(skbs, &chan->tx_q);
while (!skb_queue_empty(&chan->tx_q)) {