Commit 08882669 authored by Geert Uytterhoeven's avatar Geert Uytterhoeven Committed by David S. Miller

[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: default avatarGeert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 2536b94a
...@@ -1255,9 +1255,9 @@ out: ...@@ -1255,9 +1255,9 @@ out:
*/ */
void ip_mc_rejoin_group(struct ip_mc_list *im) void ip_mc_rejoin_group(struct ip_mc_list *im)
{ {
#ifdef CONFIG_IP_MULTICAST
struct in_device *in_dev = im->interface; struct in_device *in_dev = im->interface;
#ifdef CONFIG_IP_MULTICAST
if (im->multiaddr == IGMP_ALL_HOSTS) if (im->multiaddr == IGMP_ALL_HOSTS)
return; return;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment