Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753239AbZIXQPs (ORCPT ); Thu, 24 Sep 2009 12:15:48 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1752722AbZIXQPs (ORCPT ); Thu, 24 Sep 2009 12:15:48 -0400 Received: from fifo99.com ([67.223.236.141]:49840 "EHLO fifo99.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752664AbZIXQPr (ORCPT ); Thu, 24 Sep 2009 12:15:47 -0400 Subject: Re: [PATCH 2/14] bfa: Brocade BFA FC SCSI driver (bfa1) From: Daniel Walker To: Alan Cox Cc: Jing Huang , James.Bottomley@HansenPartnership.com, kgudipat@brocade.com, linux-kernel@vger.kernel.org, linux-scsi@vger.kernel.org, rvadivel@brocade.com, vravindr@brocade.com In-Reply-To: <20090924165944.6507432a@lxorguk.ukuu.org.uk> References: <200909240049.n8O0nw3l013437@swe58.brocade.com> <1253807042.20648.188.camel@desktop> <20090924165944.6507432a@lxorguk.ukuu.org.uk> Content-Type: text/plain Date: Thu, 24 Sep 2009 09:15:35 -0700 Message-Id: <1253808935.20648.211.camel@desktop> Mime-Version: 1.0 X-Mailer: Evolution 2.26.1 Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1860 Lines: 43 On Thu, 2009-09-24 at 16:59 +0100, Alan Cox wrote: > > > + return (*(union bfi_addr_u *) &addr); > > > +} > > > > Have you run checkpatch on this code? It produces many errors due to > > your "return" usage for one.. The usual style of return is not to use > > parentheses since it's really not a function .. > > checkpatch is just a helper tool - and stuff like that using > brackets to make it clearer is just a trivial matter of style. True, but I do care about the style of code .. You may not care about it which is fine .. > > Checkpatch produces many other errors in your code .. If you haven't > > already evaluated those errors > > It would be rather more useful if instead of parroting checkpatch results > (which people can generate themselves) you concentrated on analysis the > actual code and structure for any flaws and design details. They can generate them , but don't seem too .. For me, these problems distract from the overall design .. I find it hard to focus on reviewing larger topics like that when I know the trivial code clean ups have not been done.. It's much easier to review clean code than code which has lots of style problems. > Trivia like coding style (unless particularly bad) are something for the > maintainer just to say "fix those odd bits up and I'll merge it" at the > *end*. Well, isn't this the end for this patch set? He's asking for inclusion in this thread, and it's been submitted once before already .. He has also received enough comments for another round , so there isn't any reason not to add the style clean ups, if any, to the next one. Daniel -- 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/