diff options
-rw-r--r-- | net/bluetooth/rfcomm/core.c | 3 |
1 files changed, 0 insertions, 3 deletions
diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 1524418f39e3..09a3cbcf794e 100644 --- a/net/bluetooth/rfcomm/core.c +++ b/net/bluetooth/rfcomm/core.c | |||
@@ -1774,9 +1774,6 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d) | |||
1774 | return skb_queue_len(&d->tx_queue); | 1774 | return skb_queue_len(&d->tx_queue); |
1775 | 1775 | ||
1776 | while (d->tx_credits && (skb = skb_dequeue(&d->tx_queue))) { | 1776 | while (d->tx_credits && (skb = skb_dequeue(&d->tx_queue))) { |
1777 | struct socket *sock = d->session->sock; | ||
1778 | struct sock *sk = sock->sk; | ||
1779 | |||
1780 | err = rfcomm_send_frame(d->session, skb->data, skb->len); | 1777 | err = rfcomm_send_frame(d->session, skb->data, skb->len); |
1781 | if (err < 0) { | 1778 | if (err < 0) { |
1782 | skb_queue_head(&d->tx_queue, skb); | 1779 | skb_queue_head(&d->tx_queue, skb); |