diff options
author | Eric Dumazet <eric.dumazet@gmail.com> | 2011-12-10 04:48:31 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2011-12-11 18:25:16 -0500 |
commit | dfd56b8b38fff3586f36232db58e1e9f7885a605 (patch) | |
tree | 64c7142ebf4625939f68bd3603f1d37bacb20a73 /net/sctp/socket.c | |
parent | 1ded132d4c3442aa3a619c94c245d7b5e0eb9731 (diff) |
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>
Diffstat (limited to 'net/sctp/socket.c')
-rw-r--r-- | net/sctp/socket.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/sctp/socket.c b/net/sctp/socket.c index d56c07a3d435..db0308344d07 100644 --- a/net/sctp/socket.c +++ b/net/sctp/socket.c | |||
@@ -6841,7 +6841,7 @@ struct proto sctp_prot = { | |||
6841 | .sockets_allocated = &sctp_sockets_allocated, | 6841 | .sockets_allocated = &sctp_sockets_allocated, |
6842 | }; | 6842 | }; |
6843 | 6843 | ||
6844 | #if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) | 6844 | #if IS_ENABLED(CONFIG_IPV6) |
6845 | 6845 | ||
6846 | struct proto sctpv6_prot = { | 6846 | struct proto sctpv6_prot = { |
6847 | .name = "SCTPv6", | 6847 | .name = "SCTPv6", |
@@ -6872,4 +6872,4 @@ struct proto sctpv6_prot = { | |||
6872 | .memory_allocated = &sctp_memory_allocated, | 6872 | .memory_allocated = &sctp_memory_allocated, |
6873 | .sockets_allocated = &sctp_sockets_allocated, | 6873 | .sockets_allocated = &sctp_sockets_allocated, |
6874 | }; | 6874 | }; |
6875 | #endif /* defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) */ | 6875 | #endif /* IS_ENABLED(CONFIG_IPV6) */ |