Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751236Ab3F1E1T (ORCPT ); Fri, 28 Jun 2013 00:27:19 -0400 Received: from mga03.intel.com ([143.182.124.21]:21664 "EHLO mga03.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750949Ab3F1E1S (ORCPT ); Fri, 28 Jun 2013 00:27:18 -0400 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.87,956,1363158000"; d="scan'208";a="323740247" Message-ID: <1372393636.9243.0.camel@envy.home> Subject: Re: [PATCH 5/8] minnowboard-gpio: Export MinnowBoard expansion GPIO From: Darren Hart To: Andy Shevchenko Cc: Linux Kernel Mailing List , "H. Peter Anvin" , peter.p.waskiewicz.jr@intel.com, danders@circuitco.com, vishal.l.verma@intel.com, Matthew Garrett , Grant Likely , Linus Walleij , platform-driver-x86@vger.kernel.org Date: Thu, 27 Jun 2013 21:27:16 -0700 In-Reply-To: <1372321107.24799.75.camel@smile> References: <1372233328.24799.48.camel@smile> <1372263718.8177.74.camel@envy.home> <1372321107.24799.75.camel@smile> Organization: Intel Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.6.4 (3.6.4-2.fc18) Mime-Version: 1.0 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1414 Lines: 36 On Thu, 2013-06-27 at 11:18 +0300, Andy Shevchenko wrote: > On Wed, 2013-06-26 at 09:21 -0700, Darren Hart wrote: > > On Wed, 2013-06-26 at 10:55 +0300, Andy Shevchenko wrote: > > > > > + out: > > > > + return err; > > > > > > Are you planning to add something else to 'out' path? > > > Otherwise I think it will look better if you do return instead of > > > [useless] gotos. > > > > I suppose this is a matter of preference. I am allergic to multiple > > return points. However, your argument is consistent with CodingStyle > > Chapter 7 in that it states "and some common work such as cleanup has to > > be done." If that "and" is a required sort of &&, then I should change > > it. Do others have a strong opinion here? > > There was recently similar discussion. Author finally agreed to change: > http://www.spinics.net/lists/arm-kernel/msg252108.html > > "I did say in the changelog I opted for goto over return. But since > everybody keeps preferring returns..." OK, I'll fix that up in V2 and use that model in the future. Thank you for being persistent. -- Darren Hart Intel Open Source Technology Center Yocto Project - Technical Lead - Linux Kernel -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/