[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20070726173501.9ba466ba.akpm@linux-foundation.org>
Date: Thu, 26 Jul 2007 17:35:01 -0700
From: Andrew Morton <akpm@...ux-foundation.org>
To: Krzysztof Halasa <khc@...waw.pl>
Cc: Josh Triplett <josht@...ux.vnet.ibm.com>,
linux-kernel@...r.kernel.org,
Linus Torvalds <torvalds@...ux-foundation.org>,
linux-sparse@...r.kernel.org
Subject: Re: [PATCH] CodingStyle: proscribe do-while without braces.
On Fri, 27 Jul 2007 02:18:34 +0200 Krzysztof Halasa <khc@...waw.pl> wrote:
> Josh Triplett <josht@...ux.vnet.ibm.com> writes:
>
> > +This also does not apply to a do-while loop; always use braces with a do-while,
> > +even if it contains a single statement:
>
> I can't see anything wrong with
>
> do
> abc;
> while (xyz);
>
Me either, but whatever.
> and even if I could, "always use" seems way too strong in this case.
it's better that we all do things the same way. What that way _is_ is
actually less important, unless it's something stupid, of course.
In this case, most of the code I've seen uses the braces (I think).
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists