Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 99d2f47a authored by Jun Zhao's avatar Jun Zhao Committed by David S. Miller
Browse files

ipv6 : mcast : Delete useless parameter in ip6_mc_add1_src()



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

Signed-off-by: default avatarJun Zhao <mypopydev@gmail.com>
Signed-off-by: default avatarDavid S. Miller <davem@drr.davemloft.net>
parent 5eb81e89
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;

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