scripts: bareboximd: fix write_file error handling
write will never return 0 on POSIX conformant systems. Remove this error
path.
Also, close the file on error.

Signed-off-by: Steffen Trumtrar <s.trumtrar@pengutronix.de>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent f62bb30 commit 8a92fae86eb261ee9349a5d148d5c9d865c91177
@Steffen Trumtrar Steffen Trumtrar authored on 4 May 2020
Sascha Hauer committed on 5 May 2020
Showing 1 changed file
View
scripts/bareboximd.c