mkimage: Put FIT loading in function and tidy error handling
authorSimon Glass <sjg@chromium.org>
Wed, 8 May 2013 08:05:57 +0000 (08:05 +0000)
committerTom Rini <trini@ti.com>
Tue, 14 May 2013 19:37:25 +0000 (15:37 -0400)
commitaa6d6db4d4e85f2cae5553a27d1140069fd3e8e1
tree93d3e851704398d6a113c2455fd890dd3bf122a5
parent35e7b0f1790b5e620041348aec04c1e51d9d649b
mkimage: Put FIT loading in function and tidy error handling

The fit_handle_file() function is quite long - split out the part that
loads and checks a FIT into its own function. We will use this
function for storing public keys into a destination FDT file.

The error handling is currently a bit repetitive - tidy it.

Signed-off-by: Simon Glass <sjg@chromium.org>
tools/fit_image.c