In message <[EMAIL PROTECTED]> you wrote:
> Calculation of tail was incorrect when size % 4 == 0.
>
> New code removes the conditional and does the same thing but with arithmetic
>
> Signed-off-by: Nick Spence <[EMAIL PROTECTED]>
> ---
>
> The minimum change is to re-insert the original check:
>
> if ((uimage_to_cpu (size[i]) % 4) != 0)
> tail += (4 - uimage_to_cpu (size[i]) % 4);
>
> or a variation on this.
>
> The proposed patch cleans up the code a little further by removing
> the condition entirely and achieving the same rounding-up effect a
> little more cleanly and clearly.
>
> common/image.c | 13 ++++---------
> 1 files changed, 4 insertions(+), 9 deletions(-)
Applied, thanks.
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: [EMAIL PROTECTED]
Schshschshchsch.
-- The Gorn, "Arena", stardate 3046.2
-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference
Don't miss this year's exciting event. There's still time to save $100.
Use priority code J8TL2D2.
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
U-Boot-Users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/u-boot-users