diff options
author | Simon Glass <sjg@chromium.org> | 2014-06-02 22:04:52 -0600 |
---|---|---|
committer | Tom Rini <trini@ti.com> | 2014-06-11 16:25:46 -0400 |
commit | ef0af64b1c45b8ee28db12c16c4ee881ee328e44 (patch) | |
tree | ae0d2333556164104f9c12f561221b1d3541ed01 /tools/fit_check_sign.c | |
parent | 4f427a421fcba92b0325907fe79464c9791e85d5 (diff) | |
download | u-boot-ef0af64b1c45b8ee28db12c16c4ee881ee328e44.tar.gz |
Improve error handling in fit_common
Make the error handling common, and make sure the file is always closed
on error. Rename the parameter to be more description and add comments.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_check_sign.c')
-rw-r--r-- | tools/fit_check_sign.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/fit_check_sign.c b/tools/fit_check_sign.c index 817773d48a..357650d526 100644 --- a/tools/fit_check_sign.c +++ b/tools/fit_check_sign.c @@ -62,10 +62,10 @@ int main(int argc, char **argv) break; } - ffd = mmap_fdt(cmdname, fdtfile, &fit_blob, &fsbuf, 0); + ffd = mmap_fdt(cmdname, fdtfile, &fit_blob, &fsbuf, false); if (ffd < 0) return EXIT_FAILURE; - kfd = mmap_fdt(cmdname, keyfile, &key_blob, &ksbuf, 0); + kfd = mmap_fdt(cmdname, keyfile, &key_blob, &ksbuf, false); if (ffd < 0) return EXIT_FAILURE; |