Skip to content

Commit

Permalink
inet6: Remove inet6_destroy_sock().
Browse files Browse the repository at this point in the history
The last user of inet6_destroy_sock() is its wrapper inet6_cleanup_sock().
Let's rename inet6_destroy_sock() to inet6_cleanup_sock().

Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Kuniyuki Iwashima authored and David S. Miller committed Oct 24, 2022
1 parent 6431b0f commit 1f8c4ee
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 9 deletions.
2 changes: 0 additions & 2 deletions include/net/transp_v6.h
Original file line number Diff line number Diff line change
Expand Up @@ -58,8 +58,6 @@ ip6_dgram_sock_seq_show(struct seq_file *seq, struct sock *sp, __u16 srcp,

#define LOOPBACK4_IPV6 cpu_to_be32(0x7f000006)

void inet6_destroy_sock(struct sock *sk);

#define IPV6_SEQ_DGRAM_HEADER \
" sl " \
"local_address " \
Expand Down
8 changes: 1 addition & 7 deletions net/ipv6/af_inet6.c
Original file line number Diff line number Diff line change
Expand Up @@ -490,7 +490,7 @@ int inet6_release(struct socket *sock)
}
EXPORT_SYMBOL(inet6_release);

void inet6_destroy_sock(struct sock *sk)
void inet6_cleanup_sock(struct sock *sk)
{
struct ipv6_pinfo *np = inet6_sk(sk);
struct sk_buff *skb;
Expand All @@ -515,12 +515,6 @@ void inet6_destroy_sock(struct sock *sk)
txopt_put(opt);
}
}
EXPORT_SYMBOL_GPL(inet6_destroy_sock);

void inet6_cleanup_sock(struct sock *sk)
{
inet6_destroy_sock(sk);
}
EXPORT_SYMBOL_GPL(inet6_cleanup_sock);

/*
Expand Down

0 comments on commit 1f8c4ee

Please sign in to comment.