aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorEric Dumazet <eric.dumazet@gmail.com>2011-12-10 04:48:31 -0500
committerDavid S. Miller <davem@davemloft.net>2011-12-11 18:25:16 -0500
commitdfd56b8b38fff3586f36232db58e1e9f7885a605 (patch)
tree64c7142ebf4625939f68bd3603f1d37bacb20a73 /net/xfrm/xfrm_user.c
parent1ded132d4c3442aa3a619c94c245d7b5e0eb9731 (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/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c
index d0a42df5160e..e0d747a2e803 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -28,7 +28,7 @@
28#include <net/netlink.h> 28#include <net/netlink.h>
29#include <net/ah.h> 29#include <net/ah.h>
30#include <asm/uaccess.h> 30#include <asm/uaccess.h>
31#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 31#if IS_ENABLED(CONFIG_IPV6)
32#include <linux/in6.h> 32#include <linux/in6.h>
33#endif 33#endif
34 34
@@ -150,7 +150,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
150 break; 150 break;
151 151
152 case AF_INET6: 152 case AF_INET6:
153#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 153#if IS_ENABLED(CONFIG_IPV6)
154 break; 154 break;
155#else 155#else
156 err = -EAFNOSUPPORT; 156 err = -EAFNOSUPPORT;
@@ -201,7 +201,7 @@ static int verify_newsa_info(struct xfrm_usersa_info *p,
201 goto out; 201 goto out;
202 break; 202 break;
203 203
204#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 204#if IS_ENABLED(CONFIG_IPV6)
205 case IPPROTO_DSTOPTS: 205 case IPPROTO_DSTOPTS:
206 case IPPROTO_ROUTING: 206 case IPPROTO_ROUTING:
207 if (attrs[XFRMA_ALG_COMP] || 207 if (attrs[XFRMA_ALG_COMP] ||
@@ -1160,7 +1160,7 @@ static int verify_newpolicy_info(struct xfrm_userpolicy_info *p)
1160 break; 1160 break;
1161 1161
1162 case AF_INET6: 1162 case AF_INET6:
1163#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 1163#if IS_ENABLED(CONFIG_IPV6)
1164 break; 1164 break;
1165#else 1165#else
1166 return -EAFNOSUPPORT; 1166 return -EAFNOSUPPORT;
@@ -1231,7 +1231,7 @@ static int validate_tmpl(int nr, struct xfrm_user_tmpl *ut, u16 family)
1231 switch (ut[i].family) { 1231 switch (ut[i].family) {
1232 case AF_INET: 1232 case AF_INET:
1233 break; 1233 break;
1234#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 1234#if IS_ENABLED(CONFIG_IPV6)
1235 case AF_INET6: 1235 case AF_INET6:
1236 break; 1236 break;
1237#endif 1237#endif
@@ -2604,7 +2604,7 @@ static struct xfrm_policy *xfrm_compile_policy(struct sock *sk, int opt,
2604 return NULL; 2604 return NULL;
2605 } 2605 }
2606 break; 2606 break;
2607#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 2607#if IS_ENABLED(CONFIG_IPV6)
2608 case AF_INET6: 2608 case AF_INET6:
2609 if (opt != IPV6_XFRM_POLICY) { 2609 if (opt != IPV6_XFRM_POLICY) {
2610 *dir = -EOPNOTSUPP; 2610 *dir = -EOPNOTSUPP;