Re: [PATCH 1/2] scripts: bareboximd: fix write_file error handling

2020-05-04 Thread Sascha Hauer
On Mon, May 04, 2020 at 10:35:41AM +0200, Steffen Trumtrar wrote: > write will never return 0 on POSIX conformant systems. Remove this error > path. > Also, close the file on error. > > Signed-off-by: Steffen Trumtrar > --- > scripts/bareboximd.c | 17 ++--- > 1 file changed, 6

[PATCH 1/2] scripts: bareboximd: fix write_file error handling

2020-05-04 Thread Steffen Trumtrar
write will never return 0 on POSIX conformant systems. Remove this error path. Also, close the file on error. Signed-off-by: Steffen Trumtrar --- scripts/bareboximd.c | 17 ++--- 1 file changed, 6 insertions(+), 11 deletions(-) diff --git a/scripts/bareboximd.c