Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752441AbYLWR0n (ORCPT ); Tue, 23 Dec 2008 12:26:43 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1750955AbYLWR0d (ORCPT ); Tue, 23 Dec 2008 12:26:33 -0500 Received: from yx-out-2324.google.com ([74.125.44.29]:47081 "EHLO yx-out-2324.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1750782AbYLWR0b (ORCPT ); Tue, 23 Dec 2008 12:26:31 -0500 DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=subject:from:to:cc:in-reply-to:references:content-type:date :message-id:mime-version:x-mailer:content-transfer-encoding; b=l/8xWCtYTknxm3CKQIyr/DxZDM4OoYDGJEC6JMdhFs2lbchrCdzz6CdvMm50d0TI4W KbbOnhjdHCm0dmk/QSaZFENbllGrSvdJ5rrMISrBF4Y2+Em+0wI50o67qgl5ZiO2ZqrG DqdDqkUgJrKXOXhEB6JcQh/W3CWF3sGk3wyvU= Subject: Re: [PATCH 02/27] drivers/net: fix sparse warnings: make do-while a compound statement From: Harvey Harrison To: Krzysztof Halasa , Linus Torvalds Cc: =?ISO-8859-1?Q?H=E5kon_L=F8vdal?= , Hannes Eder , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org In-Reply-To: References: <20081222191259.11807.53190.stgit@vmbox.hanneseder.net> <20081222191507.11807.50794.stgit@vmbox.hanneseder.net> Content-Type: text/plain; charset="UTF-8" Date: Tue, 23 Dec 2008 09:26:26 -0800 Message-Id: <1230053186.1447.9.camel@brick> Mime-Version: 1.0 X-Mailer: Evolution 2.24.1 Content-Transfer-Encoding: 8bit Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1297 Lines: 34 On Tue, 2008-12-23 at 17:31 +0100, Krzysztof Halasa wrote: > "Håkon Løvdal" writes: > > > For this specific issue the important aspect is to improve readability > > (and not just eventually satisfy some warning from a tool), which I > > assume there is no disagrement on. > > Precisely. > > > Now what constitutes improved > > readbility on the other hand is another issue, and I guess there are > > next to as many oppinions as developers... :) > > Yes. Thus the brackets (or lack of them) of do-while loops should > never be forced as a part of coding standard/tools. This is just an > unimportant detail of personal style and trying to force it is simply > damaging to all of us. > > > Of secondary importance is the benefit that always using brackets > > makes them much more merge friendly. > > There are many ways to make the code more merge friendly at a cost of > readability. Hope we don't go this way. Linus himself added that particular warning to sparse...may want to check with him the reason for it. Harvey -- 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/