summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
authorDaniel Schultz <d.schultz@phytec.de>2018-01-29 14:04:09 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2018-01-30 08:34:05 +0100
commitc62c063ad5418947d1499f88037149a791c71128 (patch)
tree6968b01e8607bf6d1f576eade7d3d0e16e50b45c /commands
parentb2c0c80788f9355195b45d54c00a2a85a3fd48a7 (diff)
downloadbarebox-c62c063ad5418947d1499f88037149a791c71128.tar.gz
barebox-c62c063ad5418947d1499f88037149a791c71128.tar.xz
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 <d.schultz@phytec.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands')
-rw-r--r--commands/ubi.c2
1 files changed, 1 insertions, 1 deletions
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;
}