Commit 4ae1652e authored by Gustavo F. Padovan's avatar Gustavo F. Padovan

Bluetooth: Fix a compile warning in RFCOMM

sock and sk were leftover from another change.
Signed-off-by: default avatarGustavo F. Padovan <padovan@profusion.mobi>
parent 3573b80c
...@@ -1774,9 +1774,6 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d) ...@@ -1774,9 +1774,6 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d)
return skb_queue_len(&d->tx_queue); return skb_queue_len(&d->tx_queue);
while (d->tx_credits && (skb = skb_dequeue(&d->tx_queue))) { while (d->tx_credits && (skb = skb_dequeue(&d->tx_queue))) {
struct socket *sock = d->session->sock;
struct sock *sk = sock->sk;
err = rfcomm_send_frame(d->session, skb->data, skb->len); err = rfcomm_send_frame(d->session, skb->data, skb->len);
if (err < 0) { if (err < 0) {
skb_queue_head(&d->tx_queue, skb); skb_queue_head(&d->tx_queue, skb);
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment