imximage: move flash_offset check to common location
authorTroy Kisky <troy.kisky@boundarydevices.com>
Wed, 3 Oct 2012 15:47:05 +0000 (15:47 +0000)
committerStefano Babic <sbabic@denx.de>
Sat, 20 Oct 2012 15:13:01 +0000 (17:13 +0200)
commit8d8cc828f456a64143a0b94c751f8cfcecfe5dcc
tree3ef3b28c662eca533e9db34beccb9b2025e47e45
parentf14e6258f3ff7488a1899d784c6d62957c2df859
imximage: move flash_offset check to common location

Both set_imx_hdr_v1 and set_imx_hdr_v2 perform the
same check. Move check to before the set_imx_hdr call.

Signed-off-by: Troy Kisky <troy.kisky@boundarydevices.com>
Acked-by: Stefano Babic <sbabic@denx.de>
tools/imximage.c