diff options
author | Daniel Schultz <d.schultz@phytec.de> | 2018-01-29 14:04:09 +0100 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-01-30 08:34:05 +0100 |
commit | c62c063ad5418947d1499f88037149a791c71128 (patch) | |
tree | 6968b01e8607bf6d1f576eade7d3d0e16e50b45c | |
parent | b2c0c80788f9355195b45d54c00a2a85a3fd48a7 (diff) | |
download | barebox-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>
-rw-r--r-- | commands/ubi.c | 2 |
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; } |