[PATCH] CMD: random: fix return code
sjg at chromium.org
Mon Mar 23 16:37:03 CET 2020
On Fri, 20 Mar 2020 at 10:38, Eugeniy Paltsev
<Eugeniy.Paltsev at synopsys.com> wrote:
> As of today 'random' command return 1 (CMD_RET_FAILURE) in case
> of successful execution and 0 (CMD_RET_SUCCESS) in case of bad
> arguments. Fix that.
> NOTE: we remove printing usage information from command body
> so it won't print twice.
> Signed-off-by: Eugeniy Paltsev <Eugeniy.Paltsev at synopsys.com>
> cmd/mem.c | 9 ++++-----
> 1 file changed, 4 insertions(+), 5 deletions(-)
Reviewed-by: Simon Glass <sjg at chromium.org>
More information about the U-Boot