Fix offset calculation for multi-type legacy images.
authorNick Spence <nick.spence@freescale.com>
Sat, 10 May 2008 21:02:04 +0000 (14:02 -0700)
committerWolfgang Denk <wd@denx.de>
Sun, 11 May 2008 22:44:24 +0000 (00:44 +0200)
commit02b9b22446e3d7ad6a6382be17a1ce79a7de589b
tree1c5e0a843856256fd6f66b13d637ef5e47d5ea57
parentc9dca3c3f37d2647aec4509b24b16d15882ae3e4
Fix offset calculation for multi-type legacy images.

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 <nick.spence@freescale.com>
common/image.c