Commit be4aad05 authored by Gustavo Padovan's avatar Gustavo Padovan Committed by Johan Hedberg
Browse files

Bluetooth: Remove double check for BT_CONNECTED



The same check is done just before call l2cap_streaming_send()

Signed-off-by: default avatarGustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: default avatarMat Martineau <mathewm@codeaurora.org>
Signed-off-by: default avatarMarcel Holtmann <marcel@holtmann.org>
parent 401bb1f7
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -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)) {