1
0
Fork 0

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>
utp
Simon Glass 2016-03-16 07:45:33 -06:00 committed by Tom Rini
parent 508b028a4c
commit f980ca3411
1 changed files with 0 additions and 2 deletions

View File

@ -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: