From: Wolfgang Denk Date: Sun, 05 Jul 2009 01:30:17 +0200 Subject: [U-Boot] [PATCH] Add suport for the graphic controller included in the JADE SOC In-Reply-To: <4A4C7D73.1080502@denx.de> References: <1246368064-4957-1-git-send-email-matthias.weisser@graf-syteco.de> <1246368064-4957-2-git-send-email-matthias.weisser@graf-syteco.de> <4A4B6748.5050802@denx.de> <4A4C6999.2E8A.0063.0@graf-syteco.de> <4A4C7D73.1080502@denx.de> Message-ID: <20090704233017.B07AF832E416@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 Anatolij & Matthias, in message <4A4C7D73.1080502@denx.de> you wrote: > > >>> + if(0 == bpp){ > >> if (bpp == 0) { > > > > The spaces are OK but why turn around the comparison? I always use Because "0 == bpp" is ugly. > > this style to prevent from unwanted assignments. Well, GCC warns > > about assignments in ifs and as u-boot is GCC only I can do that. > > it is a matter of personal preference. "if (0 == bpp) {" is OK for > me, too. NAK for me. Matthias, please do as Anatolij suggested. 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 If a packet hits a pocket on a socket on a port, And the bus is interrupted as a very last resort, And the address of the memory makes your floppy disk abort, Then the socket packet pocket has an error to report! - Ken Burchill?