Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933076AbcLTFoP (ORCPT ); Tue, 20 Dec 2016 00:44:15 -0500 Received: from smtp01.smtpout.orange.fr ([80.12.242.123]:53010 "EHLO smtp.smtpout.orange.fr" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752227AbcLTFoL (ORCPT ); Tue, 20 Dec 2016 00:44:11 -0500 X-ME-Helo: [127.0.0.1] X-ME-Date: Tue, 20 Dec 2016 06:44:10 +0100 X-ME-IP: 92.140.161.60 Subject: Re: [RFC] Question about freeing of resource in 'atlas7_pinmux_probe()', in file 'drivers/pinctrl/sirf/pinctrl-atlas7.c' To: Vladimir Zapolskiy , linus.walleij@linaro.org, baohua@kernel.org References: <612eedc5-0f28-7a38-abad-4b9573208875@wanadoo.fr> <7123e174-cc22-4a76-337c-661ee87994df@mentor.com> Cc: linux-gpio@vger.kernel.org, linux-arm-kernel@lists.infradead.org, "linux-kernel@vger.kernel.org" , kernel-janitors@vger.kernel.org Newsgroups: gmane.linux.kernel.gpio,gmane.linux.ports.arm.kernel,gmane.linux.kernel,gmane.linux.kernel.janitors From: Christophe JAILLET Message-ID: <24932cf3-0fe2-c71f-231c-c2f05c96a3c9@wanadoo.fr> Date: Tue, 20 Dec 2016 06:44:04 +0100 User-Agent: Mozilla/5.0 (Windows NT 10.0; WOW64; rv:45.0) Gecko/20100101 Thunderbird/45.5.1 MIME-Version: 1.0 In-Reply-To: <7123e174-cc22-4a76-337c-661ee87994df@mentor.com> Content-Type: text/plain; charset=utf-8; format=flowed Content-Transfer-Encoding: 8bit X-Antivirus: avast! (VPS 161219-1, 19/12/2016), Outbound message X-Antivirus-Status: Clean Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 462 Lines: 14 Le 19/12/2016 à 14:54, Vladimir Zapolskiy a écrit : > Functionally it looks good, I have two comments though. > 1) you don't need to revert 151b8c5ba1eb, the commit is a proper fix > per se but incomplete, please add your change on top of it, > > 2) minimizing the lines of code by removing duplicates is always good, > so here a better and complete fix will be like the following one: > Hi, thanks for the feedback and comments. Patch submitted. CJ