aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/infiniband/ulp/ipoib/ipoib_cm.c
diff options
context:
space:
mode:
authorRoland Dreier <roland@purestorage.com>2012-07-06 01:39:34 -0400
committerRoland Dreier <roland@purestorage.com>2012-07-08 21:04:32 -0400
commitd90f9b3591b3b5fa86178e318008fc1c531a84dc (patch)
tree4d822267a4b756900a50b215c42807e8b70f4716 /drivers/infiniband/ulp/ipoib/ipoib_cm.c
parent6887a4131da3adaab011613776d865f4bcfb5678 (diff)
IB: Use IS_ENABLED(CONFIG_IPV6)
Instead of testing defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) Signed-off-by: Roland Dreier <roland@purestorage.com>
Diffstat (limited to 'drivers/infiniband/ulp/ipoib/ipoib_cm.c')
-rw-r--r--drivers/infiniband/ulp/ipoib/ipoib_cm.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/infiniband/ulp/ipoib/ipoib_cm.c b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
index 014504d8e43c..fd3871e3f65b 100644
--- a/drivers/infiniband/ulp/ipoib/ipoib_cm.c
+++ b/drivers/infiniband/ulp/ipoib/ipoib_cm.c
@@ -1376,7 +1376,7 @@ static void ipoib_cm_skb_reap(struct work_struct *work)
1376 1376
1377 if (skb->protocol == htons(ETH_P_IP)) 1377 if (skb->protocol == htons(ETH_P_IP))
1378 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu)); 1378 icmp_send(skb, ICMP_DEST_UNREACH, ICMP_FRAG_NEEDED, htonl(mtu));
1379#if defined(CONFIG_IPV6) || defined(CONFIG_IPV6_MODULE) 1379#if IS_ENABLED(CONFIG_IPV6)
1380 else if (skb->protocol == htons(ETH_P_IPV6)) 1380 else if (skb->protocol == htons(ETH_P_IPV6))
1381 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu); 1381 icmpv6_send(skb, ICMPV6_PKT_TOOBIG, 0, mtu);
1382#endif 1382#endif