Skip to content

Commit

Permalink
Bluetooth: Fix a compile warning in RFCOMM
Browse files Browse the repository at this point in the history
sock and sk were leftover from another change.

Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
  • Loading branch information
Gustavo F. Padovan committed Dec 27, 2011
1 parent 3573b80 commit 4ae1652
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions net/bluetooth/rfcomm/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit 4ae1652

Please sign in to comment.