On Mon, Jan 29, 2018 at 02:04:09PM +0100, Daniel Schultz wrote: > 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@xxxxxxxxx> > --- > commands/ubi.c | 2 +- > 1 file changed, 1 insertion(+), 1 deletion(-) Applied, thanks Sascha > > diff --git a/commands/ubi.c b/commands/ubi.c > index 5e27584..de5633c 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; > } > > > -- > 2.7.4 > > > _______________________________________________ > barebox mailing list > barebox@xxxxxxxxxxxxxxxxxxx > http://lists.infradead.org/mailman/listinfo/barebox > -- Pengutronix e.K. | | Industrial Linux Solutions | http://www.pengutronix.de/ | Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0 | Amtsgericht Hildesheim, HRA 2686 | Fax: +49-5121-206917-5555 | _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox