From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from pandora.armlinux.org.uk ([2001:4d48:ad52:3201:214:fdff:fe10:1be6]) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1cgAvk-00009D-Ti for linux-mtd@lists.infradead.org; Tue, 21 Feb 2017 13:56:39 +0000 Date: Tue, 21 Feb 2017 13:55:41 +0000 From: Russell King - ARM Linux To: Andy Shevchenko Cc: Boris Brezillon , Mark Rutland , devicetree , Brian Norris , Pawel Moll , Ian Campbell , Richard Weinberger , Kumar Gala , Nicolas Ferre , "linux-kernel@vger.kernel.org" , Wenyou Yang , Marek Vasut , Rob Herring , Alexandre Belloni , Josh Wu , "open list:MEMORY TECHNOLOGY..." , Cyrille Pitchen , Haavard Skinnemoen , David Woodhouse , linux-arm Mailing List , Hans-Christian Egtvedt Subject: Re: [PATCH v2 1/3] mtd: nand: Cleanup/rework the atmel_nand driver Message-ID: <20170221135541.GV21222@n2100.armlinux.org.uk> References: <1487593718-20752-2-git-send-email-boris.brezillon@free-electrons.com> <20170220213803.7ba5591e@bbrezillon> <20170220215009.0ecbf5a1@bbrezillon> <20170221090610.6d531b94@bbrezillon> <20170221112641.6276c001@bbrezillon> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Sender: Russell King - ARM Linux List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , On Tue, Feb 21, 2017 at 01:02:21PM +0200, Andy Shevchenko wrote: > On Tue, Feb 21, 2017 at 12:26 PM, Boris Brezillon > wrote: > > On Tue, 21 Feb 2017 12:03:45 +0200 > > Andy Shevchenko wrote: > > >> 1. For example, > >> > >> #define ATMEL_NFC_CMD(pos, cmd) ((cmd) << > >> (((pos) * 8) + 2)) > > > > Well, I like to explicitly put parenthesis even when operator > > precedence guarantees the order of the calculation ('*' is preceding > > '+'). > > That's my point. I'm not a LISP programmer. > Personally I think it makes readability worse. +1. I find unnecessary parenthesis is an effective obfuscation technique. -- RMK's Patch system: http://www.armlinux.org.uk/developer/patches/ FTTC broadband for 0.8mile line: currently at 9.6Mbps down 400kbps up according to speedtest.net.