From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753226AbdKAKfT (ORCPT ); Wed, 1 Nov 2017 06:35:19 -0400 Received: from userp1040.oracle.com ([156.151.31.81]:33766 "EHLO userp1040.oracle.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751669AbdKAKfR (ORCPT ); Wed, 1 Nov 2017 06:35:17 -0400 Date: Wed, 1 Nov 2017 13:33:35 +0300 From: Dan Carpenter To: Geert Uytterhoeven Cc: SF Markus Elfring , "linux-gpio@vger.kernel.org" , "linux-arm-kernel@lists.infradead.org" , Barry Song , Geert Uytterhoeven , Julia Lawall , Krzysztof Kozlowski , Linus Walleij , Ludovic Desroches , Patrice Chotard , Rob Herring , LKML , "kernel-janitors@vger.kernel.org" Subject: Re: [PATCH] pinctrl: sirf: Use common error handling code in sirfsoc_dt_node_to_map() Message-ID: <20171101103335.y5t7id3okn55r6a2@mwanda> References: <80911d4b-d819-335c-106e-70d7672e645b@users.sourceforge.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: NeoMutt/20170609 (1.8.3) X-Source-IP: userv0021.oracle.com [156.151.31.71] Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.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