Skip to content

Commit

Permalink
ipv6 : mcast : Delete useless parameter in ip6_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 5eb81e8 commit 99d2f47
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions net/ipv6/mcast.c
Original file line number Diff line number Diff line change
Expand Up @@ -1918,7 +1918,7 @@ static int ip6_mc_del_src(struct inet6_dev *idev, const struct in6_addr *pmca,
* Add multicast single-source filter to the interface list
*/
static int ip6_mc_add1_src(struct ifmcaddr6 *pmc, int sfmode,
const struct in6_addr *psfsrc, int delta)
const struct in6_addr *psfsrc)
{
struct ip6_sf_list *psf, *psf_prev;

Expand Down Expand Up @@ -2049,7 +2049,7 @@ static int ip6_mc_add_src(struct inet6_dev *idev, const struct in6_addr *pmca,
pmc->mca_sfcount[sfmode]++;
err = 0;
for (i=0; i<sfcount; i++) {
err = ip6_mc_add1_src(pmc, sfmode, &psfsrc[i], delta);
err = ip6_mc_add1_src(pmc, sfmode, &psfsrc[i]);
if (err)
break;
}
Expand Down

0 comments on commit 99d2f47

Please sign in to comment.