From: Geert Uytterhoeven Date: Tue, 13 Mar 2007 00:02:37 +0000 (-0700) Subject: [IPV4]: Fix warning in ip_mc_rejoin_group. X-Git-Tag: v4.13~39810^2~2 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=08882669e06099eb3e6ac407f552743aeaaec73f;p=mirror_ubuntu-bionic-kernel.git [IPV4]: Fix warning in ip_mc_rejoin_group. Kill warning about unused variable `in_dev' when CONFIG_IP_MULTICAST is not set. Signed-off-by: Geert Uytterhoeven Signed-off-by: David S. Miller --- diff --git a/net/ipv4/igmp.c b/net/ipv4/igmp.c index 1c6a084b5fb7..8cedb2a2c9df 100644 --- a/net/ipv4/igmp.c +++ b/net/ipv4/igmp.c @@ -1255,9 +1255,9 @@ out: */ void ip_mc_rejoin_group(struct ip_mc_list *im) { +#ifdef CONFIG_IP_MULTICAST struct in_device *in_dev = im->interface; -#ifdef CONFIG_IP_MULTICAST if (im->multiaddr == IGMP_ALL_HOSTS) return;