소스 검색

[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 <Geert.Uytterhoeven@sonycom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Geert Uytterhoeven 18 년 전
부모
커밋
08882669e0
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      net/ipv4/igmp.c

+ 1 - 1
net/ipv4/igmp.c

@@ -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;