Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752119AbYLWRgi (ORCPT ); Tue, 23 Dec 2008 12:36:38 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1751198AbYLWRg0 (ORCPT ); Tue, 23 Dec 2008 12:36:26 -0500 Received: from khc.piap.pl ([195.187.100.11]:35942 "EHLO khc.piap.pl" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751174AbYLWRgY (ORCPT ); Tue, 23 Dec 2008 12:36:24 -0500 To: Harvey Harrison Cc: Linus Torvalds , =?utf-8?B?SMOla29uIEzDuHZkYWw=?= , Hannes Eder , netdev@vger.kernel.org, kernel-janitors@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 02/27] drivers/net: fix sparse warnings: make do-while a compound statement References: <20081222191259.11807.53190.stgit@vmbox.hanneseder.net> <20081222191507.11807.50794.stgit@vmbox.hanneseder.net> <1230053186.1447.9.camel@brick> From: Krzysztof Halasa Date: Tue, 23 Dec 2008 18:36:22 +0100 In-Reply-To: <1230053186.1447.9.camel@brick> (Harvey Harrison's message of "Tue\, 23 Dec 2008 09\:26\:26 -0800") Message-ID: 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: 858 Lines: 22 Harvey Harrison writes: >> 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. Once again, this is a personal thing, and a harmless one. Sometimes I think using this sparse thing does more harm than good. Not that the tool itself is bad - I find it really useful, many sparse warnings actually did cause code improvement. It's like with knives, there are good uses and a bit less good ones. -- Krzysztof Halasa -- 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/