Skip to content

Commit

Permalink
ipv4 : igmp : Delete useless parameter in ip_mc_add1_src()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Jun Zhao authored and David S. Miller committed Dec 1, 2011
1 parent 32092ec commit 5eb81e8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv4/igmp.c
Original file line number Diff line number Diff line change
@@ -1579,7 +1579,7 @@ static int ip_mc_del_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
* Add multicast single-source filter to the interface list
*/
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;

@@ -1714,7 +1714,7 @@ static int ip_mc_add_src(struct in_device *in_dev, __be32 *pmca, int sfmode,
pmc->sfcount[sfmode]++;
err = 0;
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)
break;
}

0 comments on commit 5eb81e8

Please sign in to comment.