From mboxrd@z Thu Jan 1 00:00:00 1970 From: Stefan Roese Date: Tue, 25 Aug 2009 17:44:49 +0200 Subject: [U-Boot] PATCH mtd CFI flash: timeout calculation underflow if imprecise 1kHz timer: fix In-Reply-To: <200908251739.56181.sr@denx.de> References: <4A925011.9080906@imagos.it> <200908251739.56181.sr@denx.de> Message-ID: <200908251744.49192.sr@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 On Tuesday 25 August 2009 17:39:56 Stefan Roese wrote: > > + if ((ulong)CONFIG_SYS_HZ > 100000) > > + tout *= (ulong)CONFIG_SYS_HZ/1000; /* for a big HZ, avoid > > overflow */ > > Please insert spaces before and after the "/" above. > > > + else > > + tout = DIV_ROUND_UP(tout*(ulong)CONFIG_SYS_HZ, 1000); And spaces before and after the "*" above as well. Thanks. Cheers, Stefan -- DENX Software Engineering GmbH, MD: Wolfgang Denk & Detlev Zundel HRB 165235 Munich, Office: Kirchenstr.5, D-82194 Groebenzell, Germany Phone: (+49)-8142-66989-0 Fax: (+49)-8142-66989-80 Email: office at denx.de