mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-25 14:10:43 +00:00
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>
This commit is contained in:
parent
925c97c248
commit
4c1dc1a90f
1 changed files with 0 additions and 1 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue