From: Gustavo F. Padovan Date: Tue, 27 Dec 2011 16:43:41 +0000 (-0200) Subject: Bluetooth: Fix a compile warning in RFCOMM X-Git-Tag: accepted/tizen/common/20141203.182822~5497^2~13^2~6^2~14 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=4ae1652ef1bf38e07caa5d1d86ffd3b31103b55a;p=platform%2Fkernel%2Flinux-arm64.git Bluetooth: Fix a compile warning in RFCOMM sock and sk were leftover from another change. Signed-off-by: Gustavo F. Padovan --- diff --git a/net/bluetooth/rfcomm/core.c b/net/bluetooth/rfcomm/core.c index 1524418..09a3cbc 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) 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);