From: Wolfgang Denk Date: Sat, 09 Jun 2012 01:58:56 +0200 Subject: [U-Boot] [PATCH RESEND] Fix misuse of calloc() in linux/compat.h header In-Reply-To: <201206090148.40933.marex@denx.de> References: <1339176514-13137-1-git-send-email-marex@denx.de> <20120608234343.3874A2000F5@gemini.denx.de> <201206090148.40933.marex@denx.de> Message-ID: <20120608235856.1C1392000F5@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 Marek Vasut, In message <201206090148.40933.marex@denx.de> you wrote: > > > Multiplication being commutative, I see zero effect in this patch? > > Weeeeell, not in every algebraic system. It has zero effect, it's only about > correctness [1]. Will applying this break anything? In which way is "a * b" more (or less?) correct than "b * a" ? What is the difference between allocating a contiguous sequence of 4096 single bytes, or allocating a single block of size 4096? 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 The first 90% of a project takes 90% of the time, the last 10% takes the other 90% of the time.