netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Jun Zhao <mypopydev@gmail.com>
To: davem@davemloft.net
Cc: netdev@vger.kernel.org, Jun Zhao <mypopydev@gmail.com>
Subject: [PATCH 2/2] ipv6 : mcast : Delete useless parameter in ip6_mc_add1_src()
Date: Thu,  1 Dec 2011 00:21:05 +0800	[thread overview]
Message-ID: <1322670065-13237-2-git-send-email-mypopydev@gmail.com> (raw)
In-Reply-To: <1322670065-13237-1-git-send-email-mypopydev@gmail.com>

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

Signed-off-by: Jun Zhao <mypopydev@gmail.com>
---
 net/ipv6/mcast.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/net/ipv6/mcast.c b/net/ipv6/mcast.c
index ee7839f..933f4c9 100644
--- a/net/ipv6/mcast.c
+++ b/net/ipv6/mcast.c
@@ -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;
 	}
-- 
1.7.2.5

  reply	other threads:[~2011-11-30 16:22 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2011-11-30 16:21 [PATCH 1/2] ipv4 : igmp : Delete useless parameter in ip_mc_add1_src() Jun Zhao
2011-11-30 16:21 ` Jun Zhao [this message]
2011-12-01  4:17   ` [PATCH 2/2] ipv6 : mcast : Delete useless parameter in ip6_mc_add1_src() David Miller
2011-12-01  4:17 ` [PATCH 1/2] ipv4 : igmp : Delete useless parameter in ip_mc_add1_src() David Miller

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1322670065-13237-2-git-send-email-mypopydev@gmail.com \
    --to=mypopydev@gmail.com \
    --cc=davem@davemloft.net \
    --cc=netdev@vger.kernel.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).