[PATCH 2/2] commands: ubiupdatevol: confirm success with return value 0

2016-09-05 Thread Ulrich Ölmann
Treat the write() case analogously to the read() case and do not return the number of most recently written bytes as the status of sucessful command execution. Signed-off-by: Ulrich Ölmann --- commands/ubi.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/commands/ubi.c

[PATCH 1/2] commands: ubiupdatevol: store return value of read() in a signed int

2016-09-05 Thread Ulrich Ölmann
Signed-off-by: Ulrich Ölmann --- commands/ubi.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/commands/ubi.c b/commands/ubi.c index 65d2d256a830..dd981f95ea5d 100644 --- a/commands/ubi.c +++ b/commands/ubi.c @@ -14,10 +14,9 @@ static int do_ubiupdatevol(int argc, char *