Commit f980ca34 authored by Simon Glass's avatar Simon Glass Committed by Tom Rini

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: default avatarSimon Glass <>
Reviewed-by: default avatarTom Rini <>
parent 508b028a
......@@ -446,8 +446,6 @@ static int fit_extract_data(struct image_tool_params *params, const char *fname)
ret = -EIO;
goto err;
ret = 0;
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment