Simon Glass 5b15a2596f mkimage: Don't close the file if it wasn't opened
The error path for fit_import_data() is incorrect if the second open() call
fails.

Reported-by: Coverity (CID: 138489)
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
2016-03-22 12:16:28 -04:00
..
2016-03-17 21:27:39 -06:00
2016-03-22 12:16:13 -04:00
2016-02-08 10:10:34 -05:00
2016-03-22 12:16:13 -04:00
2009-11-24 23:43:18 +01:00
2015-11-29 16:02:44 +01:00
2016-03-22 12:16:13 -04:00
2016-02-21 11:09:19 +01:00
2009-04-28 01:16:46 +02:00
2015-11-16 17:22:18 -05:00