Skip to content

Commit

Permalink
Bluetooth: Remove double check for BT_CONNECTED
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Gustavo Padovan authored and Johan Hedberg committed Jun 5, 2012
1 parent 401bb1f commit be4aad0
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bluetooth/l2cap_core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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)) {
Expand Down

0 comments on commit be4aad0

Please sign in to comment.