diff options
author | Arnaldo Carvalho de Melo <acme@ghostprotocols.net> | 2005-08-09 22:45:38 -0400 |
---|---|---|
committer | David S. Miller <davem@sunset.davemloft.net> | 2005-08-29 18:37:29 -0400 |
commit | e6848976b721eeb5551cd94673faafeef78d9f35 (patch) | |
tree | 6c78b0eb52614ff6386b603ca64091b5aefaa418 /net/ipv4/tcp.c | |
parent | d13964f4490157b8a290903362bfbc54f750a6bc (diff) |
[NET]: Cleanup INET_REFCNT_DEBUG code
Signed-off-by: Arnaldo Carvalho de Melo <acme@ghostprotocols.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv4/tcp.c')
-rw-r--r-- | net/ipv4/tcp.c | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/net/ipv4/tcp.c b/net/ipv4/tcp.c index 42a2e2ccd430..20159a3dafb3 100644 --- a/net/ipv4/tcp.c +++ b/net/ipv4/tcp.c | |||
@@ -1580,12 +1580,7 @@ void tcp_destroy_sock(struct sock *sk) | |||
1580 | 1580 | ||
1581 | xfrm_sk_free_policy(sk); | 1581 | xfrm_sk_free_policy(sk); |
1582 | 1582 | ||
1583 | #ifdef INET_REFCNT_DEBUG | 1583 | sk_refcnt_debug_release(sk); |
1584 | if (atomic_read(&sk->sk_refcnt) != 1) { | ||
1585 | printk(KERN_DEBUG "Destruction TCP %p delayed, c=%d\n", | ||
1586 | sk, atomic_read(&sk->sk_refcnt)); | ||
1587 | } | ||
1588 | #endif | ||
1589 | 1584 | ||
1590 | atomic_dec(&tcp_orphan_count); | 1585 | atomic_dec(&tcp_orphan_count); |
1591 | sock_put(sk); | 1586 | sock_put(sk); |