Received: by 2002:a05:6500:1b8f:b0:1fa:5c73:8e2d with SMTP id df15csp1176734lqb; Thu, 30 May 2024 02:35:54 -0700 (PDT) X-Forwarded-Encrypted: i=2; AJvYcCUAwbi/m+p8YLei0v0WYZAP28K/sVO9bSXdSwkV/svVOLo4Ox1QAMrTrS2R6P/RQr+7fEjVE2L97FMIKfcqfezL2uHPMYXdq4n+Oxvq0Q== X-Google-Smtp-Source: AGHT+IHoR4+sJjSyxGsNLuPQ04dVxmZawk2yrZOsIx+XT1ag4DXru366ZpRxEm7uCVjQT+62oUSs X-Received: by 2002:a05:6871:893:b0:24f:e5e1:b0cb with SMTP id 586e51a60fabf-25060b4f84emr2010623fac.15.1717061753996; Thu, 30 May 2024 02:35:53 -0700 (PDT) Return-Path: Received: from sy.mirrors.kernel.org (sy.mirrors.kernel.org. [147.75.48.161]) by mx.google.com with ESMTPS id 41be03b00d2f7-6822ab79924si12064277a12.786.2024.05.30.02.35.53 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 May 2024 02:35:53 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-195131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) client-ip=147.75.48.161; Authentication-Results: mx.google.com; arc=fail (body hash mismatch); spf=pass (google.com: domain of linux-kernel+bounces-195131-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.48.161 as permitted sender) smtp.mailfrom="linux-kernel+bounces-195131-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=fail (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sy.mirrors.kernel.org (Postfix) with ESMTPS id E592EB24B89 for ; Thu, 30 May 2024 09:04:53 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id C500D6F310; Thu, 30 May 2024 09:02:26 +0000 (UTC) Received: from fgw21-7.mail.saunalahti.fi (fgw21-7.mail.saunalahti.fi [62.142.5.82]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id C0542176ADA for ; Thu, 30 May 2024 09:02:24 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=62.142.5.82 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059746; cv=none; b=tW88/k5wR6o8oWxY1yZYJjppRUCQVDsOl8XWK/K58Wxls/RrZOuLl++a5qnrn1cdNNR5x7vPsUVD/ta79Wig2El+aex1sssYeWZk7FPgLO5NYN1lzSScVF3Ern3NTmJY+phJP14hbBaY7qa2QUf5h/NsoF2waLzrsd237ImLme8= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1717059746; c=relaxed/simple; bh=F2UL5a5lNnRgjZ1mIiR2YUOReGq+mkXTrOgzg/TJ45E=; h=From:Date:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=Nkq7JtYR1HeYuFOmr0GMbipur5Wii4sFhAcebIZR28ZWtl4u34ih/WEH/w5j/c0cH1yEE8xmyznRuc9QcqyIohfmk+JRwvlmDJ/w273eHMBShocSYUyviRHESCc32gatGQ5MVgZ2+Bi6bfSd8VE5NWdMmCHfDIgSqUpA4GfPht8= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com; spf=fail smtp.mailfrom=gmail.com; arc=none smtp.client-ip=62.142.5.82 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=fail smtp.mailfrom=gmail.com Received: from localhost (88-113-26-230.elisa-laajakaista.fi [88.113.26.230]) by fgw23.mail.saunalahti.fi (Halon) with ESMTP id 51e6d162-1e63-11ef-80c8-005056bdfda7; Thu, 30 May 2024 12:02:22 +0300 (EEST) From: Andy Shevchenko Date: Thu, 30 May 2024 12:02:19 +0300 To: Geert Uytterhoeven Cc: "Peng Fan (OSS)" , Linus Walleij , Thierry Reding , Jonathan Hunter , Dvorkin Dmitry , Wells Lu , Maxime Coquelin , Alexandre Torgue , Emil Renner Berthing , Jianlong Huang , Hal Feng , Orson Zhai , Baolin Wang , Chunyan Zhang , Viresh Kumar , Shiraz Hashim , soc@kernel.org, Krzysztof Kozlowski , Sylwester Nawrocki , Alim Akhtar , Geert Uytterhoeven , Patrice Chotard , Heiko Stuebner , Damien Le Moal , Ludovic Desroches , Nicolas Ferre , Alexandre Belloni , Claudiu Beznea , Dong Aisheng , Fabio Estevam , Shawn Guo , Jacky Bai , Pengutronix Kernel Team , Chester Lin , Matthias Brugger , Ghennadi Procopciuc , Sean Wang , Matthias Brugger , AngeloGioacchino Del Regno , Sascha Hauer , Andrew Jeffery , Joel Stanley , Dan Carpenter , Tony Lindgren , Stephen Warren , linux-gpio@vger.kernel.org, linux-kernel@vger.kernel.org, linux-tegra@vger.kernel.org, linux-arm-kernel@lists.infradead.org, linux-stm32@st-md-mailman.stormreply.com, linux-samsung-soc@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-rockchip@lists.infradead.org, linux-riscv@lists.infradead.org, linux-mediatek@lists.infradead.org, imx@lists.linux.dev, linux-aspeed@lists.ozlabs.org, openbmc@lists.ozlabs.org, Peng Fan Subject: Re: [PATCH v2 07/20] pinctrl: renesas: Use scope based of_node_put() cleanups Message-ID: References: <20240504-pinctrl-cleanup-v2-0-26c5f2dc1181@nxp.com> <20240504-pinctrl-cleanup-v2-7-26c5f2dc1181@nxp.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline Content-Transfer-Encoding: 8bit In-Reply-To: Mon, May 13, 2024 at 01:59:03PM +0200, Geert Uytterhoeven kirjoitti: > On Sat, May 4, 2024 at 3:14 PM Peng Fan (OSS) wrote: .. > You missed one trivial conversion, presumably because no error handling > and thus no of_node_put() is involved? Nothing is missed. The below is a redundant change. .. > - for_each_child_of_node(np, child) { > + for_each_child_of_node_scoped(np, child) { > if (of_property_count_u32_elems(child, RZN1_PINS_PROP) > 0) > count++; > } > > If you prefer not to include this I prefer this not to be included as it will give a misleading signals to the use of the original API(s). -- With Best Regards, Andy Shevchenko