Subject: [NETROM] Use socket helpers instead of direct fiddling with struct sock

From: Ralf Baechle <[email-masked]>
Date: Fri, 30 Jun 2006 14:46:48 +0100

Signed-off-by: Ralf Baechle DL5RB <[email-masked]>

 net/netrom/af_netrom.c |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Index: linux-net/net/netrom/af_netrom.c
===================================================================
--- linux-net.orig/net/netrom/af_netrom.c	2006-06-23 22:40:26.000000000 +0100
+++ linux-net/net/netrom/af_netrom.c	2006-06-23 22:43:14.000000000 +0100
@@ -801,7 +801,7 @@ static int nr_accept(struct socket *sock
 
 	/* Now attach up the new socket */
 	kfree_skb(skb);
-	sk->sk_ack_backlog--;
+	sk_acceptq_removed(sk);
 	newsock->sk = newsk;
 
 out:
@@ -986,7 +986,7 @@ int nr_rx_frame(struct sk_buff *skb, str
 	nr_make->vr        = 0;
 	nr_make->vl        = 0;
 	nr_make->state     = NR_STATE_3;
-	sk->sk_ack_backlog++;
+	sk_acceptq_added(sk);
 
 	nr_insert_socket(make);