Skip to content

Commit a3ebe92

Browse files
Florian Westphaldavem330
authored andcommitted
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: 4b340a5 ("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>
1 parent 74edbe9 commit a3ebe92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

net/ipv6/ip6mr.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1653,7 +1653,6 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
16531653
mifi_t mifi;
16541654
struct net *net = sock_net(sk);
16551655
struct mr_table *mrt;
1656-
bool do_wrmifwhole;
16571656

16581657
if (sk->sk_type != SOCK_RAW ||
16591658
inet_sk(sk)->inet_num != IPPROTO_ICMPV6)
@@ -1761,6 +1760,7 @@ int ip6_mroute_setsockopt(struct sock *sk, int optname, sockptr_t optval,
17611760
#ifdef CONFIG_IPV6_PIMSM_V2
17621761
case MRT6_PIM:
17631762
{
1763+
bool do_wrmifwhole;
17641764
int v;
17651765

17661766
if (optlen != sizeof(v))

0 commit comments

Comments
 (0)