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_info.c | |
parent | 4f427a421fcba92b0325907fe79464c9791e85d5 (diff) |
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_info.c')
-rw-r--r-- | tools/fit_info.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/fit_info.c b/tools/fit_info.c index 50f3c8edf12..9442ff10724 100644 --- a/tools/fit_info.c +++ b/tools/fit_info.c @@ -68,7 +68,7 @@ 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) { printf("Could not open %s\n", fdtfile); |