mirror of
https://github.com/AsahiLinux/u-boot
synced 2024-11-10 23:24:38 +00:00
mkimage: Correct file being closed twice in fit_extract_data()
The code flows through to the end of the function, so we don't need another close() before this. Remove it. Reported-by: Coverity (CID: 138503) Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Tom Rini <trini@konsulko.com>
This commit is contained in:
parent
508b028a4c
commit
f980ca3411
1 changed files with 0 additions and 2 deletions
|
@ -446,8 +446,6 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
|
|||
ret = -EIO;
|
||||
goto err;
|
||||
}
|
||||
close(fd);
|
||||
|
||||
ret = 0;
|
||||
|
||||
err:
|
||||
|
|
Loading…
Reference in a new issue