From: Wolfgang Denk Date: Mon, 24 May 2010 22:48:00 +0200 Subject: [U-Boot] [PATCH] Improve DaVinci SPI speed In-Reply-To: <15866EAE-624B-4850-B10F-78AB99E3A1A2@audioscience.com> References: <25096244-C685-4D68-BBF9-6DF2F154AFB8@audioscience.com> <20100521131353.A50F2CCF026@gemini.denx.de> <15866EAE-624B-4850-B10F-78AB99E3A1A2@audioscience.com> Message-ID: <20100524204800.40E93E22AD1@gemini.denx.de> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Dear Delio Brignoli, In message <15866EAE-624B-4850-B10F-78AB99E3A1A2@audioscience.com> you wrote: > > On 21/05/2010, at 15:13, Wolfgang Denk wrote: > >> + *rxp = buf_reg_val & 0xFF; > >> + rxp++; > >> + } > > > > Please change into: > > > > if (rxp) > > *rxp++ = buf_reg_val & 0xFF; > > Are you sure? Is folding that 3 line block into a one liner really worth > the loss of readability? I know what that means, so do you and many > others on this ML, but that's bound to raise a few eyebrows. A quick Removing the need for braces is a good thing. This is plain C, without any tricks or loopholes. > in a case like this. In the end it's your decision: if you like to be > kinky, it's your prerogative ;-) Kinky? Funny how you see that. Best regards, Wolfgang Denk -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-10 Fax: (+49)-8142-66989-80 Email: wd at denx.de Build a system that even a fool can use and only a fool will want to use it.