]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: ubifs: Do not show usage when command fails
authorPali Rohár <pali@kernel.org>
Sun, 7 Aug 2022 19:58:56 +0000 (21:58 +0200)
committerTom Rini <trini@konsulko.com>
Wed, 23 Nov 2022 18:06:12 +0000 (13:06 -0500)
commitbd6c73f5512f8f95c0b665cad765befc77bae32b
treea7ed2152c71067dbb32350527efb75344de98067
parent39d26daca355ba7a35326c02121160db2a6afd52
cmd: ubifs: Do not show usage when command fails

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@kernel.org>
Reviewed-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Dhruva Gole <d-gole@ti.com>
cmd/ubifs.c