mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-09-17 16:15:18 +00:00
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>
This commit is contained in:
parent
401bb1f768
commit
be4aad05af
1 changed files with 0 additions and 3 deletions
|
@ -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)) {
|
||||
|
|
Loading…
Reference in a new issue