提交 be4aad05 编写于 作者: G Gustavo Padovan 提交者: Johan Hedberg

Bluetooth: Remove double check for BT_CONNECTED

The same check is done just before call l2cap_streaming_send()
Signed-off-by: NGustavo Padovan <gustavo.padovan@collabora.co.uk>
Reviewed-by: NMat Martineau <mathewm@codeaurora.org>
Signed-off-by: NMarcel Holtmann <marcel@holtmann.org>
上级 401bb1f7
...@@ -1693,9 +1693,6 @@ static int l2cap_streaming_send(struct l2cap_chan *chan, ...@@ -1693,9 +1693,6 @@ static int l2cap_streaming_send(struct l2cap_chan *chan,
BT_DBG("chan %p, skbs %p", chan, skbs); BT_DBG("chan %p, skbs %p", chan, skbs);
if (chan->state != BT_CONNECTED)
return -ENOTCONN;
skb_queue_splice_tail_init(skbs, &chan->tx_q); skb_queue_splice_tail_init(skbs, &chan->tx_q);
while (!skb_queue_empty(&chan->tx_q)) { while (!skb_queue_empty(&chan->tx_q)) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册