mirror of
https://source.denx.de/u-boot/u-boot.git
synced 2025-11-28 14:11:29 +01: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
@ -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…
x
Reference in New Issue
Block a user