mirror of
https://github.com/lkl/linux.git
synced 2025-12-19 16:13:19 +09:00
ipv6: Remove __ipv6_only_sock().
Since commit 9fe516ba3f ("inet: move ipv6only in sock_common"),
ipv6_only_sock() and __ipv6_only_sock() are the same macro. Let's
remove the one.
Signed-off-by: Kuniyuki Iwashima <kuniyu@amazon.co.jp>
Reviewed-by: David Ahern <dsahern@kernel.org>
Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
0844d36f77
commit
89e9c72800
@@ -340,8 +340,7 @@ static inline struct raw6_sock *raw6_sk(const struct sock *sk)
|
||||
return (struct raw6_sock *)sk;
|
||||
}
|
||||
|
||||
#define __ipv6_only_sock(sk) (sk->sk_ipv6only)
|
||||
#define ipv6_only_sock(sk) (__ipv6_only_sock(sk))
|
||||
#define ipv6_only_sock(sk) (sk->sk_ipv6only)
|
||||
#define ipv6_sk_rxinfo(sk) ((sk)->sk_family == PF_INET6 && \
|
||||
inet6_sk(sk)->rxopt.bits.rxinfo)
|
||||
|
||||
@@ -358,7 +357,6 @@ static inline int inet_v6_ipv6only(const struct sock *sk)
|
||||
return ipv6_only_sock(sk);
|
||||
}
|
||||
#else
|
||||
#define __ipv6_only_sock(sk) 0
|
||||
#define ipv6_only_sock(sk) 0
|
||||
#define ipv6_sk_rxinfo(sk) 0
|
||||
|
||||
|
||||
Reference in New Issue
Block a user