summaryrefslogtreecommitdiffstats
path: root/commands
diff options
context:
space:
mode:
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;
}