Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S933309Ab2BBTMI (ORCPT ); Thu, 2 Feb 2012 14:12:08 -0500 Received: from perches-mx.perches.com ([206.117.179.246]:41142 "EHLO labridge.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S932647Ab2BBTMG (ORCPT ); Thu, 2 Feb 2012 14:12:06 -0500 Message-ID: <1328209919.18641.42.camel@joe2Laptop> Subject: Re: [PATCH] Keep kernel coding style rule of hfs-s+/sp source From: Joe Perches To: Karsten Keil Cc: geunsik.lim@gmail.com, David Miller , isdn@linux-pingi.de, lucas.demarchi@profusion.mobi, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Date: Thu, 02 Feb 2012 11:11:59 -0800 In-Reply-To: <20120202190152.GB11660@gw.linux-pingi.de> References: <1328079593-19197-1-git-send-email-geunsik.lim@gmail.com> <20120201.020602.131240058939599710.davem@davemloft.net> <20120201.024843.318636456202840126.davem@davemloft.net> <20120202190152.GB11660@gw.linux-pingi.de> Content-Type: text/plain; charset="UTF-8" X-Mailer: Evolution 3.2.2- Content-Transfer-Encoding: 7bit Mime-Version: 1.0 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1018 Lines: 29 On Thu, 2012-02-02 at 20:01 +0100, Karsten Keil wrote: > > >> This was probably there to eliminate compiler warnings or avoid the > Yes it was. [] > I think in this case a coding style violation is minor to a warning or > potencial miscompiling. > Do not misunderstand me that I do not like to make the code better and more > readable, but such small style violations should be only fixed when here is > a strong need or the driver is reworked in bigger parts and full testing > is done. I agree, but in the future (or perhaps even today) it's better to mark these odd coding style uses with macros to indicate the reason for their use. Perhaps something akin to the ACCESS_ONCE macro like #define PERFORM_ONCE(expr) \ do { \ if ((expr)) \ ; \ } while (0) -- 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/