Эх сурвалжийг харах

ipv4 : igmp : Delete useless parameter in ip_mc_add1_src()

Need not to used 'delta' flag when add single-source to interface
filter source list.

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
Signed-off-by: David S. Miller <davem@drr.davemloft.net>
Jun Zhao 13 жил өмнө
parent
commit
5eb81e8916
1 өөрчлөгдсөн 2 нэмэгдсэн , 2 устгасан
  1. 2 2
      net/ipv4/igmp.c

+ 2 - 2
net/ipv4/igmp.c

@@ -1579,7 +1579,7 @@ out_unlock:
  * Add multicast single-source filter to the interface list
  * Add multicast single-source filter to the interface list
  */
  */
 static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode,
 static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode,
-	__be32 *psfsrc, int delta)
+	__be32 *psfsrc)
 {
 {
 	struct ip_sf_list *psf, *psf_prev;
 	struct ip_sf_list *psf, *psf_prev;
 
 
@@ -1714,7 +1714,7 @@ static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
 		pmc->sfcount[sfmode]++;
 		pmc->sfcount[sfmode]++;
 	err = 0;
 	err = 0;
 	for (i=0; i<sfcount; i++) {
 	for (i=0; i<sfcount; i++) {
-		err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i], delta);
+		err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i]);
 		if (err)
 		if (err)
 			break;
 			break;
 	}
 	}