Skip to content

Commit 4ae1652

Browse files
author
Gustavo F. Padovan
committed
Bluetooth: Fix a compile warning in RFCOMM
sock and sk were leftover from another change. Signed-off-by: Gustavo F. Padovan <padovan@profusion.mobi>
1 parent 3573b80 commit 4ae1652

1 file changed

Lines changed: 0 additions & 3 deletions

File tree

‎net/bluetooth/rfcomm/core.c‎

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1774,9 +1774,6 @@ static inline int rfcomm_process_tx(struct rfcomm_dlc *d)
17741774
return skb_queue_len(&d->tx_queue);
17751775

17761776
while (d->tx_credits && (skb = skb_dequeue(&d->tx_queue))) {
1777-
struct socket *sock = d->session->sock;
1778-
struct sock *sk = sock->sk;
1779-
17801777
err = rfcomm_send_frame(d->session, skb->data, skb->len);
17811778
if (err < 0) {
17821779
skb_queue_head(&d->tx_queue, skb);

0 commit comments

Comments
 (0)