Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1756441Ab2BBTCB (ORCPT ); Thu, 2 Feb 2012 14:02:01 -0500 Received: from moutng.kundenserver.de ([212.227.126.186]:56281 "EHLO moutng.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1755783Ab2BBTB7 (ORCPT ); Thu, 2 Feb 2012 14:01:59 -0500 Date: Thu, 2 Feb 2012 20:01:52 +0100 From: Karsten Keil To: geunsik.lim@gmail.com Cc: David Miller , isdn@linux-pingi.de, lucas.demarchi@profusion.mobi, netdev@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] Keep kernel coding style rule of hfs-s+/sp source Message-ID: <20120202190152.GB11660@gw.linux-pingi.de> Mail-Followup-To: geunsik.lim@gmail.com, David Miller , isdn@linux-pingi.de, lucas.demarchi@profusion.mobi, netdev@vger.kernel.org, linux-kernel@vger.kernel.org References: <1328079593-19197-1-git-send-email-geunsik.lim@gmail.com> <20120201.020602.131240058939599710.davem@davemloft.net> <20120201.024843.318636456202840126.davem@davemloft.net> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20120201.024843.318636456202840126.davem@davemloft.net> User-Agent: Mutt/1.5.21 (2010-09-15) X-Provags-ID: V02:K0:krLGHD8YZXo99WknABwI923wc80841U2liY5UFja7MZ m+TCEMuoSBNXIIVCPFyr5Zl8QJUgtKv3Lnxt/lSdQTYhVl0h7C 18vROJ2W7og5ri5Wj7OAcxpWooMrPVE4NfYloZ6KeiMM6AN/CH I00FfMJEM1BoZ6crATDmiZeXxZ+il3HsQyly5ROlD1oII2rKcL I75TK1ho1L60bG7+MN0xRyAYvhsCB5oKKJjlikyJqGHlZmaUwd V8ou64g1UA202xKCG5a7C4oeU7xAmadspnxfeHMIyIQAfu5gtF 2bJb+ANhqzArUhtO9vgXYbXszvQeC1CXXxP/lkqkzoxGMh7qU3 Q/Cc+LSu+MZUrfuQhVyXbMoqWs2SpZi9HQQFvVQwwjt/827GBQ qUitvdwjHosSQ== Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 1944 Lines: 51 On Wed, Feb 01, 2012 at 02:48:43AM -0500, David Miller wrote: > From: Geunsik Lim > Date: Wed, 1 Feb 2012 16:45:09 +0900 > > > On Wed, Feb 1, 2012 at 4:06 PM, David Miller wrote: > > > >> From: Geunsik Lim > >> Date: Wed, 1 Feb 2012 15:59:53 +0900 > >> > >> > Modified for kernel coding style rule of hfs-s+/sp device driver . > >> > . reference: ./Documentation/CodingStyle > >> > > >> > ex) > >> > 60 Don't put multiple statements on a single line unless you have > >> > 61 something to hide: > >> > 62 > >> > 63 if (condition) do_this; > >> > 64 do_something_everytime; > >> > > >> > Signed-off-by: Geunsik Lim > >> > >> This was probably there to eliminate compiler warnings or avoid the Yes it was. > >> > > Thank you for your opinion. > > It's strange. I did not meet compiler warnings you replied. I did not remember which version it was, it must been arround the time when that code was developed. I did not like this method, but this was at this time the suggested workaround from the GCC guys the problem is, even when you read the value into a register, it makes no difference, you cannot do anything with it. I agree with David, such patches are not really needed, the danger that something gets wrong is too high. 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. Best Regards Karsten -- 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/