From: Dan Carpenter Date: Wed, 01 Nov 2017 10:33:35 +0000 Subject: Re: [PATCH] pinctrl: sirf: Use common error handling code in sirfsoc_dt_node_to_map() Message-Id: <20171101103335.y5t7id3okn55r6a2@mwanda> List-Id: References: <80911d4b-d819-335c-106e-70d7672e645b@users.sourceforge.net> In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: linux-arm-kernel@lists.infradead.org Really, the of_node_put() is connected to the loop and not the function so the original code is the right way to do it. Otherwise if we added more error handling to the function then normal kernel error handling wouldn't work naturally. regards, dan carpenter