commit | dbb2df12215bbacd973ce0740d0e1227c0410e4f | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sun May 01 17:12:24 2016 -0600 |
committer | Tom Rini <trini@konsulko.com> | Mon May 02 18:37:10 2016 -0400 |
tree | 757edea6cca52f446308089eefc98d299d9fb7e6 | |
parent | e89ead37a6e3c926a3520cd6e871523e0dd64e86 [diff] |
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>
diff --git a/tools/fit_image.c b/tools/fit_image.c index ddefa72..0551572 100644 --- a/tools/fit_image.c +++ b/tools/fit_image.c
@@ -343,7 +343,6 @@ if (ret != size) { fprintf(stderr, "%s: Can't write %s: %s\n", params->cmdname, fname, strerror(errno)); - close(fd); goto err; } close(fd);