Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1759398AbYBXEuj (ORCPT ); Sat, 23 Feb 2008 23:50:39 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1755640AbYBXEub (ORCPT ); Sat, 23 Feb 2008 23:50:31 -0500 Received: from smtp1.linux-foundation.org ([207.189.120.13]:39473 "EHLO smtp1.linux-foundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755295AbYBXEua (ORCPT ); Sat, 23 Feb 2008 23:50:30 -0500 Date: Sat, 23 Feb 2008 20:47:44 -0800 (PST) From: Linus Torvalds To: David Newall cc: Pavel Machek , Krzysztof Halasa , Jeff Garzik , Adrian Bunk , Roland Dreier , Glenn Streiff , Faisal Latif , linux-kernel@vger.kernel.org, general@lists.openfabrics.org, Andrew Morton , Greg Kroah-Hartman Subject: Re: Merging of completely unreviewed drivers In-Reply-To: <47C0E3D7.50901@davidnewall.com> Message-ID: References: <5E701717F2B2ED4EA60F87C8AA57B7CC0794FFFF@venom2> <20080221154951.GA28328@cs181133002.pp.htv.fi> <20080221210124.GD28328@cs181133002.pp.htv.fi> <47BE0C12.604@garzik.org> <20080222184518.GB6060@ucw.cz> <20080223094334.GA3081@elf.ucw.cz> <47C013E2.6040201@davidnewall.com> <47C0E3D7.50901@davidnewall.com> User-Agent: Alpine 1.00 (LFD 882 2007-12-20) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1337 Lines: 37 On Sun, 24 Feb 2008, David Newall wrote: > > > which talks more about what matters - too deep indentation. > > What's too deep? Is the following too deep? It would be, if it weren't artificially so, for violates several kernel coding standards, one being that the "case" labels indent with the switch, not under it (the other being the placement of braces). > (Yes, I know, "we don't indent 'case' because it consumes too much > room." No, that's not it at all. We don't indent 'case' because it matches with the 'switch', not because of any room issues. > That's inconsistent with the rest of normal indenting style, and > a poor excuse to keep within an obsolete and unnecessary restriction.) It's not at all inconsistent. It's just making clear how the parts of the function group together. Indenting a case-statement an extra level is as stupid as indenting "else" one extra level from the "if ()" it goes together with. Do you think that would be sane? The fact that the 'case' thing is technically parsed as a separate statement in C doesn't change anything. Linus -- 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/