]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit518f97393847c514abb81870dbe4ecf62cf604de
tree9f6cadb0f8b8c217b28ae0794fe393c2c31085e7
parent77877251691b1870a9fdb72b7ca577f5983af46d
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: 1feb2bf7dce8 ("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