[PATCH] cmd: ubifs: Do not show usage when command fails

Simon Glass sjg at chromium.org
Wed Nov 2 00:25:11 CET 2022


On Sun, 7 Aug 2022 at 13:59, Pali Rohár <pali at kernel.org> wrote:
>
> Return value -1 cause U-Boot to print usage message. Return value
> 1 (CMD_RET_FAILURE) indicates failure. So fix return value when ubifs
> command starts it execution and fails.
>
> Signed-off-by: Pali Rohár <pali at kernel.org>
> ---
>  cmd/ubifs.c | 8 ++++----
>  1 file changed, 4 insertions(+), 4 deletions(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list