]> git.baikalelectronics.ru Git - uboot.git/commit
cmd: change the return value when argc error
authorShenlin Liang <liangshenlin@eswincomputing.com>
Fri, 9 Dec 2022 09:17:43 +0000 (17:17 +0800)
committerTom Rini <trini@konsulko.com>
Wed, 11 Jan 2023 16:54:50 +0000 (11:54 -0500)
commit0923da9de1a7097e2d459142726cdbdcb3c84675
tree01609b84fe7b2f59268dff5f322e99f1d1f54114
parent11a31ea8c6a60f8e1503479fa7314f73fb438c84
cmd: change the return value when argc error

When the number of parameters is wrong, the return value should be processed in
the same way as other cmds, return CMD_RET_USAGE so that it can print the information.

Signed-off-by: Shenlin Liang <liangshenlin@eswincomputing.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
cmd/mvebu/comphy_rx_training.c