Skip to content

Commit 99d2f47

Browse files
mypopydevDavid S. Miller
authored andcommitted
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: Jun Zhao <mypopydev@gmail.com> Signed-off-by: David S. Miller <davem@drr.davemloft.net>
1 parent 5eb81e8 commit 99d2f47

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎net/ipv6/mcast.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1918,7 +1918,7 @@ static int ip6_mc_del_src(struct inet6_dev *idev, const struct in6_addr *pmca,
19181918
* Add multicast single-source filter to the interface list
19191919
*/
19201920
static int ip6_mc_add1_src(struct ifmcaddr6 *pmc, int sfmode,
1921-
const struct in6_addr *psfsrc, int delta)
1921+
const struct in6_addr *psfsrc)
19221922
{
19231923
struct ip6_sf_list *psf, *psf_prev;
19241924

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

0 commit comments

Comments
 (0)