Skip to contentSkip to conversation

ipv4 : igmp : Delete useless parameter in ip_mc_add1_src()

PATCH Applied Jun Zhao 2 participants 4 messages Nov 30, 2011 – Dec 1, 2011

Subsystems (3)
lore
Share & tools
lore

Jun Zhao

author
#0 lore raw

PATCH 1/2 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.

---
 net/ipv4/igmp.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/ipv4/igmp.c +2 -2
index 22c10b5..e6ed796 100644
@@ -1574,7 +1574,7 @@ out_unlock:
  * 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;
 
@@ -1709,7 +1709,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;
 	}
Signature · 1 line
1.7.2.5
author
#1 lore raw

PATCH 2/2 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.

---
 net/ipv6/mcast.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
net/ipv6/mcast.c +2 -2
index ee7839f..933f4c9 100644
@@ -1914,7 +1914,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;
 
@@ -2045,7 +2045,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;
 	}
Signature · 1 line
1.7.2.5
maintainer Applied
#2 lore raw

Re: [PATCH 2/2] ipv6 : mcast : Delete useless parameter in ip6_mc_add1_src()

From: Jun Zhao <[email protected]>
Date: Thu, 1 Dec 2011 00:21:05 +0800

Quoted 4 lines

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

Applied.