mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 03:01:39 -04:00
[NET]: Cleanup INET_REFCNT_DEBUG code
Signed-off-by: Arnaldo Carvalho de Melo <[email protected]> Signed-off-by: David S. Miller <[email protected]>
This commit is contained in:
parent
d13964f449
commit
e6848976b7
13 changed files with 86 additions and 74 deletions
|
|
@ -641,10 +641,7 @@ static struct sock *sctp_v6_create_accept_sk(struct sock *sk,
|
|||
else
|
||||
newinet->pmtudisc = IP_PMTUDISC_WANT;
|
||||
|
||||
#ifdef INET_REFCNT_DEBUG
|
||||
atomic_inc(&inet6_sock_nr);
|
||||
atomic_inc(&inet_sock_nr);
|
||||
#endif
|
||||
sk_refcnt_debug_inc(newsk);
|
||||
|
||||
if (newsk->sk_prot->init(newsk)) {
|
||||
sk_common_release(newsk);
|
||||
|
|
|
|||
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue