]> bbs.cooldavid.org Git - net-next-2.6.git/blobdiff - net/sctp/protocol.c
[NET]: Cleanup INET_REFCNT_DEBUG code
[net-next-2.6.git] / net / sctp / protocol.c
index ce9245e71fca9b0694c473c4cc21b7eb8c5ba058..8d3f8096b8735e307bff00ab5c5befe6fac18212 100644 (file)
@@ -593,9 +593,7 @@ static struct sock *sctp_v4_create_accept_sk(struct sock *sk,
        newinet->mc_index = 0;
        newinet->mc_list = NULL;
 
-#ifdef INET_REFCNT_DEBUG
-       atomic_inc(&inet_sock_nr);
-#endif
+       sk_refcnt_debug_inc(newsk);
 
        if (newsk->sk_prot->init(newsk)) {
                sk_common_release(newsk);