diff options
author | Gustavo Padovan <gustavo.padovan@collabora.co.uk> | 2012-05-21 13:58:21 -0300 |
---|---|---|
committer | Johan Hedberg <johan.hedberg@intel.com> | 2012-06-05 06:34:06 +0300 |
commit | be4aad05af0ec949a91e7bbaa55c02a954714473 (patch) | |
tree | 5c7c2d7eb7a40460181cd6fafc7cd850ec744051 | |
parent | 401bb1f768c842b9fbfaeb7741cc5cf17c70ffd1 (diff) | |
download | blackbird-op-linux-be4aad05af0ec949a91e7bbaa55c02a954714473.tar.gz blackbird-op-linux-be4aad05af0ec949a91e7bbaa55c02a954714473.zip |
Bluetooth: Remove double check for BT_CONNECTED
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>
-rw-r--r-- | net/bluetooth/l2cap_core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/bluetooth/l2cap_core.c b/net/bluetooth/l2cap_core.c index c85a3a2a37bf..5bf828753a93 100644 --- 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)) { |