[U-Boot] PATCH mtd CFI flash: timeout calculation underflow if imprecise 1kHz timer: fix

Stefan Roese sr at denx.de
Tue Aug 25 17:44:49 CEST 2009


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


More information about the U-Boot mailing list