Skip to content

Commit

Permalink
[IPV4]: Fix warning in ip_mc_rejoin_group.
Browse files Browse the repository at this point in the history
Kill warning about unused variable `in_dev' when CONFIG_IP_MULTICAST
is not set.

Signed-off-by: Geert Uytterhoeven <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
  • Loading branch information
Geert Uytterhoeven authored and David S. Miller committed Mar 13, 2007
1 parent 2536b94 commit 0888266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion net/ipv4/igmp.c
Original file line number Diff line number Diff line change
Expand Up @@ -1255,9 +1255,9 @@ void ip_mc_inc_group(struct in_device *in_dev, __be32 addr)
*/
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;

Expand Down

0 comments on commit 0888266

Please sign in to comment.