Skip to content

Commit 5eb81e8

Browse files
mypopydevDavid S. Miller
authored andcommitted
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>
1 parent 32092ec commit 5eb81e8

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/ipv4/igmp.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1579,7 +1579,7 @@ static int ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
15791579
* Add multicast single-source filter to the interface list
15801580
*/
15811581
static int ip_mc_add1_src(struct ip_mc_list *pmc, int sfmode,
1582-
__be32 *psfsrc, int delta)
1582+
__be32 *psfsrc)
15831583
{
15841584
struct ip_sf_list *psf, *psf_prev;
15851585

@@ -1714,7 +1714,7 @@ static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
17141714
pmc->sfcount[sfmode]++;
17151715
err = 0;
17161716
for (i=0; i<sfcount; i++) {
1717-
err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i], delta);
1717+
err = ip_mc_add1_src(pmc, sfmode, &psfsrc[i]);
17181718
if (err)
17191719
break;
17201720
}

0 commit comments

Comments
 (0)