diff options
author | Florian Westphal <fw@strlen.de> | 2022-04-06 12:04:45 +0200 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2022-04-06 15:14:30 +0100 |
commit | a3ebe92a0f2dfaeac257b685531decf8c9cd8eee (patch) | |
tree | 9f6cadb0f8b8c217b28ae0794fe393c2c31085e7 /net/ipv6/ip6mr.c | |
parent | 74edbe9edeeffbf5a57f02ac8e8665bc5dbe8ffc (diff) | |
download | linux-a3ebe92a0f2dfaeac257b685531decf8c9cd8eee.tar.gz linux-a3ebe92a0f2dfaeac257b685531decf8c9cd8eee.tar.bz2 linux-a3ebe92a0f2dfaeac257b685531decf8c9cd8eee.zip |
net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n
net/ipv6/ip6mr.c:1656:14: warning: unused variable 'do_wrmifwhole'
Move it to the CONFIG_IPV6_PIMSM_V2 scope where its used.
Fixes: 4b340a5a726d ("net: ip6mr: add support for passing full packet on wrong mif")
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net/ipv6/ip6mr.c')
-rw-r--r-- | net/ipv6/ip6mr.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ipv6/ip6mr.c b/net/ipv6/ip6mr.c index a9775c830194..4e74bc61a3db 100644 --- a/net/ipv6/ip6mr.c +++ b/net/ipv6/ip6mr.c @@ -1653,7 +1653,6 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval, mifi_t mifi; struct net *net = sock_net(sk); struct mr_table *mrt; - bool do_wrmifwhole; if (sk->sk_type != SOCK_RAW || inet_sk(sk)->inet_num != IPPROTO_ICMPV6) @@ -1761,6 +1760,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval, #ifdef CONFIG_IPV6_PIMSM_V2 case MRT6_PIM: { + bool do_wrmifwhole; int v; if (optlen != sizeof(v)) |