From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1765482AbXG0ASp (ORCPT ); Thu, 26 Jul 2007 20:18:45 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757383AbXG0ASh (ORCPT ); Thu, 26 Jul 2007 20:18:37 -0400 Received: from khc.piap.pl ([195.187.100.11]:49832 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757244AbXG0ASg (ORCPT ); Thu, 26 Jul 2007 20:18:36 -0400 To: Josh Triplett Cc: linux-kernel@vger.kernel.org, Andrew Morton , Linus Torvalds , linux-sparse@vger.kernel.org Subject: Re: [PATCH] CodingStyle: proscribe do-while without braces. References: <1185485822.4459.1.camel@josh-work.beaverton.ibm.com> From: Krzysztof Halasa Date: Fri, 27 Jul 2007 02:18:34 +0200 In-Reply-To: <1185485822.4459.1.camel@josh-work.beaverton.ibm.com> (Josh Triplett's message of "Thu, 26 Jul 2007 14:37:02 -0700") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Sender: linux-kernel-owner@vger.kernel.org X-Mailing-List: linux-kernel@vger.kernel.org Josh Triplett 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); and even if I could, "always use" seems way too strong in this case. -- Krzysztof Halasa