net: ipv6mr: fix unused variable warning with CONFIG_IPV6_PIMSM_V2=n
authorFlorian Westphal <fw@strlen.de>
Wed, 6 Apr 2022 10:04:45 +0000 (12:04 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 6 Apr 2022 14:14:30 +0000 (15:14 +0100)
commita3ebe92a0f2dfaeac257b685531decf8c9cd8eee
tree9f6cadb0f8b8c217b28ae0794fe393c2c31085e7
parent74edbe9edeeffbf5a57f02ac8e8665bc5dbe8ffc
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>
net/ipv6/ip6mr.c