Bluetooth: Fix a compile warning in RFCOMM
[linux-3.10.git] / net / bluetooth / rfcomm / core.c
index 1524418..09a3cbc 100644 (file)
@@ -1774,9 +1774,6 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d)
                return skb_queue_len(&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);
                if (err < 0) {
                        skb_queue_head(&d->tx_queue, skb);