From c62c063ad5418947d1499f88037149a791c71128 Mon Sep 17 00:00:00 2001 From: Daniel Schultz Date: Mon, 29 Jan 2018 14:04:09 +0100 Subject: commands: ubi: ubiupdatevol: Reduce error code to 0 or 1 do_ubiupdatevol can either return 0 or the ioctl return value. This is not in conformity with the other ubi comannds return values. Signed-off-by: Daniel Schultz Signed-off-by: Sascha Hauer --- commands/ubi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/commands/ubi.c b/commands/ubi.c index 5e2758400a..de5633c458 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -82,7 +82,7 @@ error: close(fd_vol); error_img: close(fd_img); - return ret; + return ret ? 1 : 0; } -- cgit v1.2.3