Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S272895AbTHKRR5 (ORCPT ); Mon, 11 Aug 2003 13:17:57 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S272894AbTHKRR2 (ORCPT ); Mon, 11 Aug 2003 13:17:28 -0400 Received: from parcelfarce.linux.theplanet.co.uk ([195.92.249.252]:40427 "EHLO www.linux.org.uk") by vger.kernel.org with ESMTP id S272886AbTHKRQL (ORCPT ); Mon, 11 Aug 2003 13:16:11 -0400 Message-ID: <3F37CF4E.3010605@pobox.com> Date: Mon, 11 Aug 2003 13:15:58 -0400 From: Jeff Garzik Organization: none User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.2.1) Gecko/20021213 Debian/1.2.1-2.bunk X-Accept-Language: en MIME-Version: 1.0 To: Larry McVoy CC: davej@redhat.com, torvalds@osdl.org, linux-kernel@vger.kernel.org, dri-devel@lists.sourceforge.net Subject: Re: [PATCH] CodingStyle fixes for drm_agpsupport References: <20030811164012.GB858@work.bitmover.com> <3F37CB44.5000307@pobox.com> <20030811170425.GA4418@work.bitmover.com> In-Reply-To: <20030811170425.GA4418@work.bitmover.com> Content-Type: text/plain; charset=us-ascii; format=flowed Content-Transfer-Encoding: 7bit Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 879 Lines: 33 Larry McVoy wrote: > That ought to be balanced with "don't screw up the revision history, people > use it". It's one thing to reformat code that is unreadable, for the most > part this code didn't come close to unreadable. Granted. > I wasn't suggesting that. I was saying > > if (expr) statement; // OK The test and the statement run together visually, which is it is preferred to put the statement on the following line. > The exception I was saying was reasonable is if you are doing something like > > if (!pointer) return (-EINVAL); > > Short, sweet, readable, no worries. return is not a function ;-) Jeff - 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/