diff options
author | Simon Glass <sjg@chromium.org> | 2016-05-01 17:12:24 -0600 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2016-05-02 18:37:10 -0400 |
commit | 4c1dc1a90fb60c2e5f28351b6ff2ae187dc587ef (patch) | |
tree | 757edea6cca52f446308089eefc98d299d9fb7e6 /tools/fit_image.c | |
parent | 925c97c248527391de32c2926f7e1911850fd4b0 (diff) | |
download | u-boot-4c1dc1a90fb60c2e5f28351b6ff2ae187dc587ef.tar.gz |
fit_image: Fix a double close() on the error path
There is an extra close() call which is not needed.
Reported-by: Coverity (CID: 143065)
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'tools/fit_image.c')
-rw-r--r-- | tools/fit_image.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/tools/fit_image.c b/tools/fit_image.c index ddefa72f34..0551572b04 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c @@ -343,7 +343,6 @@ static int fit_build(struct image_tool_params *params, const char *fname) if (ret != size) { fprintf(stderr, "%s: Can't write %s: %s\n", params->cmdname, fname, strerror(errno)); - close(fd); goto err; } close(fd); |