diff options
author | Amerigo Wang <amwang@redhat.com> | 2012-10-29 12:23:10 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-11-01 12:41:35 -0400 |
commit | 07a936260a94ae4798527ce8f79d4f3b589ab8a3 (patch) | |
tree | bf8ff84c3045cd3b8b2b2970a6c7491439172939 /net/ipv6/ip6_output.c | |
parent | cc535dfb6a85b42218307c43f60668d7bd6f4318 (diff) |
ipv6: use IS_ENABLED()
#if defined(CONFIG_FOO) || defined(CONFIG_FOO_MODULE)
can be replaced by
#if IS_ENABLED(CONFIG_FOO)
Cc: David S. Miller <davem@davemloft.net>
Signed-off-by: Cong Wang <amwang@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6_output.c')
-rw-r--r-- | net/ipv6/ip6_output.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/net/ipv6/ip6_output.c b/net/ipv6/ip6_output.c index aece3e792f84..e10c77b4fbec 100644 --- a/net/ipv6/ip6_output.c +++ b/net/ipv6/ip6_output.c | |||
@@ -538,8 +538,7 @@ static void ip6_copy_metadata(struct sk_buff *to, struct sk_buff *from) | |||
538 | to->tc_index = from->tc_index; | 538 | to->tc_index = from->tc_index; |
539 | #endif | 539 | #endif |
540 | nf_copy(to, from); | 540 | nf_copy(to, from); |
541 | #if defined(CONFIG_NETFILTER_XT_TARGET_TRACE) || \ | 541 | #if IS_ENABLED(CONFIG_NETFILTER_XT_TARGET_TRACE) |
542 | defined(CONFIG_NETFILTER_XT_TARGET_TRACE_MODULE) | ||
543 | to->nf_trace = from->nf_trace; | 542 | to->nf_trace = from->nf_trace; |
544 | #endif | 543 | #endif |
545 | skb_copy_secmark(to, from); | 544 | skb_copy_secmark(to, from); |
@@ -564,7 +563,7 @@ int ip6_find_1stfragopt(struct sk_buff *skb, u8 **nexthdr) | |||
564 | found_rhdr = 1; | 563 | found_rhdr = 1; |
565 | break; | 564 | break; |
566 | case NEXTHDR_DEST: | 565 | case NEXTHDR_DEST: |
567 | #if defined(CONFIG_IPV6_MIP6) || defined(CONFIG_IPV6_MIP6_MODULE) | 566 | #if IS_ENABLED(CONFIG_IPV6_MIP6) |
568 | if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) | 567 | if (ipv6_find_tlv(skb, offset, IPV6_TLV_HAO) >= 0) |
569 | break; | 568 | break; |
570 | #endif | 569 | #endif |