Received: by 2002:a05:6a10:1287:0:0:0:0 with SMTP id d7csp539219pxv; Thu, 15 Jul 2021 09:47:22 -0700 (PDT) X-Google-Smtp-Source: ABdhPJwr3Ob9+JArAhkSa3EHZYhx1vo5maF1OFlKchk8y4nxw2dHzvAWRVnVqlmOCIBuxlogR+g6 X-Received: by 2002:a05:6402:487:: with SMTP id k7mr8231812edv.315.1626367642051; Thu, 15 Jul 2021 09:47:22 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626367642; cv=none; d=google.com; s=arc-20160816; b=SK5TW523NAk6sfX35UzPm9OOyOWuliprxDtY9XmJKWB4nJ5aHb1CKKEP25LaJ53vtO bXSGx3Gd4w5n/CrPdTExO7ug4OKXdiwssW3nf1aY3mNMmoBmvmmbKIWzGnaXYY2G2HoY 7nIUT6st3WhpHB6UwG1hgOt9BhRQobML+yLlHMQuixpA4+tZyf+2Yu3SNuFy7ZZGVWJa Yz4uBwJWtqk0WlOiU7wu+bmnCNCL0MjlqQXhZXX/5Y8WFJLIGVFzXxDX61cuXVKW/1rf VseOOktkF85fW284HAI6ALdyhoCMGKUmGQeuB/Q26PIgBzkEV+wHlUrJYkwNNqUFcuuy KP1A== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=XwlSaGJvvc3nLTuvyyC1WPFwnzVQ5GZo7l033ihAazk=; b=1AkeTO6t7NHzqJU4drBa8T3pEvodpYsQqc+rjPLBgJtaZFMjVbgFi/64KjpqHh2FWn fvVuMzgwhS9fL9QCatxOJINQ5bXDM4UriqiKXr6fLzfjhMAwBbV54KiBIl8ASoOtOmaI JvfdE4k0nFmBOXT56Qjs9kaBcl7cv6hOt0kx2eCNlKW7DfUDyzbOQYGF3WHzV+cCQzZK Td0C18vn3+Ii7BUxC7lpibnchK8N8jmnsl96vm/m0YyRd9a9+CxZ/wjkjFHAUyGszhFR LuNJIetImsZGN2gl5hrKukActrYfhCkqPdMFMVtAYSIT7BAGoq/3Mh+cUn5w3V8glIRt t0nw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id ds7si9522392ejc.304.2021.07.15.09.46.59; Thu, 15 Jul 2021 09:47:22 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=mediatek.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S233076AbhGOOiQ (ORCPT + 99 others); Thu, 15 Jul 2021 10:38:16 -0400 Received: from mailgw02.mediatek.com ([210.61.82.184]:57648 "EHLO mailgw02.mediatek.com" rhost-flags-OK-FAIL-OK-FAIL) by vger.kernel.org with ESMTP id S229624AbhGOOiP (ORCPT ); Thu, 15 Jul 2021 10:38:15 -0400 X-UUID: 8149c731000b4e7ca39b0bdf136ff0ca-20210715 X-UUID: 8149c731000b4e7ca39b0bdf136ff0ca-20210715 Received: from mtkcas07.mediatek.inc [(172.21.101.84)] by mailgw02.mediatek.com (envelope-from ) (Generic MTA with TLSv1.2 ECDHE-RSA-AES256-SHA384 256/256) with ESMTP id 367406245; Thu, 15 Jul 2021 22:35:19 +0800 Received: from mtkcas10.mediatek.inc (172.21.101.39) by mtkmbs01n1.mediatek.inc (172.21.101.68) with Microsoft SMTP Server (TLS) id 15.0.1497.2; Thu, 15 Jul 2021 22:35:18 +0800 Received: from localhost.localdomain (10.15.20.246) by mtkcas10.mediatek.inc (172.21.101.73) with Microsoft SMTP Server id 15.0.1497.2 via Frontend Transport; Thu, 15 Jul 2021 22:35:17 +0800 From: Rocco Yue To: David Ahern CC: "David S . Miller" , Hideaki YOSHIFUJI , David Ahern , Jakub Kicinski , Matthias Brugger , , , , , , , Rocco Yue Subject: Re: [PATCH v2] net: ipv6: remove unused local variable Date: Thu, 15 Jul 2021 22:19:37 +0800 Message-ID: <20210715141937.5356-1-rocco.yue@mediatek.com> X-Mailer: git-send-email 2.18.0 In-Reply-To: <20986885-73a5-8e58-0eb9-54b0723467e4@gmail.com> References: <20986885-73a5-8e58-0eb9-54b0723467e4@gmail.com> MIME-Version: 1.0 Content-Type: text/plain X-MTK: N Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2021-07-15 at 08:16 -0600, David Ahern wrote: > On 7/14/21 10:20 PM, Rocco Yue wrote: >> The local variable "struct net *net" in the two functions of >> inet6_rtm_getaddr() and inet6_dump_addr() are actually useless, >> so remove them. >> >> Signed-off-by: Rocco Yue >> --- >> net/ipv6/addrconf.c | 6 ++---- >> 1 file changed, 2 insertions(+), 4 deletions(-) >> > > a v2 with no changelog. From what I can tell the only difference is > "net: " in the Subject line which is not what I said in the last email. > > Let me try again: There are 2 trees - net for bug fixes and net-next for > development (anything that is not a bug fix). Each patch should specify > which tree the patch is for by putting 'net' or 'net-next' in the > brackets ([]). This is a cleanup not a bug fix, so this patch should be: > > [PATCH net-next] ipv6: remove unused local variable > > and really that should be > > [PATCH net-next] ipv6: remove unnecessary local variable > > If you send more versions of a patch always put a changelog - a summary > of what is different in the current patch versus the previous ones. > > No need to send another version of this patch unless you get a comment > requesting change, or the maintainers ask for a re-send. > > Reviewed-by: David Ahern Hi David, Thanks for your detailed explanation, I am appreciated that you shared these valureable advices for me. They are important for my furture upstream work. I will re-send it :) Sincerely, Rocco