From patchwork Wed Nov 30 16:21:05 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jun Zhao X-Patchwork-Id: 128535 X-Patchwork-Delegate: davem@davemloft.net Return-Path: X-Original-To: patchwork-incoming@ozlabs.org Delivered-To: patchwork-incoming@ozlabs.org Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by ozlabs.org (Postfix) with ESMTP id E7CD5B6F7F for ; Thu, 1 Dec 2011 03:22:40 +1100 (EST) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757706Ab1K3QWg (ORCPT ); Wed, 30 Nov 2011 11:22:36 -0500 Received: from mail-iy0-f174.google.com ([209.85.210.174]:32889 "EHLO mail-iy0-f174.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757575Ab1K3QWf (ORCPT ); Wed, 30 Nov 2011 11:22:35 -0500 Received: by mail-iy0-f174.google.com with SMTP id e36so978764iag.19 for ; Wed, 30 Nov 2011 08:22:35 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references; bh=46Z6Q3Q/6p8Y5AWBmPr9Sn7LBmYFACnonTHRGKULiVk=; b=JOV7gDvDo2TteMbaegDj9ID8TCzubgWhfEs0OE/wR1JTwxNSpXWQD8QDEPk+7Bkrer TGFwZpOjaM/M1V0fPgCl60BIXVoo5M7+8442YgLmN97Itf4BfLjxMLA7Lyr0scdo6JLZ X470b4igSMNIxIPbB7TBpvx0XDB6bbO3kRO28= Received: by 10.42.161.9 with SMTP id r9mr3565890icx.49.1322670155430; Wed, 30 Nov 2011 08:22:35 -0800 (PST) Received: from localhost.localdomain ([60.63.199.85]) by mx.google.com with ESMTPS id gx3sm5375873igb.0.2011.11.30.08.22.33 (version=TLSv1/SSLv3 cipher=OTHER); Wed, 30 Nov 2011 08:22:35 -0800 (PST) From: Jun Zhao To: davem@davemloft.net Cc: netdev@vger.kernel.org, Jun Zhao Subject: [PATCH 2/2] ipv6 : mcast : Delete useless parameter in ip6_mc_add1_src() Date: Thu, 1 Dec 2011 00:21:05 +0800 Message-Id: <1322670065-13237-2-git-send-email-mypopydev@gmail.com> X-Mailer: git-send-email 1.7.2.5 In-Reply-To: <1322670065-13237-1-git-send-email-mypopydev@gmail.com> References: <1322670065-13237-1-git-send-email-mypopydev@gmail.com> Sender: netdev-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: netdev@vger.kernel.org Need not to used 'delta' flag when add single-source to interface filter source list. Signed-off-by: Jun Zhao --- 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