net: use IS_ENABLED(CONFIG_IPV6)
Instead of testing defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
committed by
David S. Miller
parent
1ded132d4c
commit
dfd56b8b38
@@ -6841,7 +6841,7 @@ struct proto sctp_prot = {
|
||||
.sockets_allocated = &sctp_sockets_allocated,
|
||||
};
|
||||
|
||||
#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE)
|
||||
#if IS_ENABLED(CONFIG_IPV6)
|
||||
|
||||
struct proto sctpv6_prot = {
|
||||
.name = "SCTPv6",
|
||||
@@ -6872,4 +6872,4 @@ struct proto sctpv6_prot = {
|
||||
.memory_allocated = &sctp_memory_allocated,
|
||||
.sockets_allocated = &sctp_sockets_allocated,
|
||||
};
|
||||
#endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */
|
||||
#endif /* IS_ENABLED(CONFIG_IPV6) */
|
||||
|
Reference in New Issue
Block a user