summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorBin Meng <bmeng.cn@gmail.com>2016-08-13 04:02:06 -0700
committerTom Rini <trini@konsulko.com>2016-08-20 11:35:09 -0400
commit3c1dcef62adca0e0ff83ab925ca0b4b8c5fbc573 (patch)
tree44b94aae32a3827f8df8fa763ab35747959f2a05 /cmd
parenta391d5004ea381c3496c8dc3498031aeebdabc9a (diff)
cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments
When typing 'bootefi' from U-Boot shell, nothing outputs. Like other commands, return CMD_RET_USAGE so that it can print help message. Signed-off-by: Bin Meng <bmeng.cn@gmail.com> Reviewed-by: Alexander Graf <agraf@suse.de>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/bootefi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootefi.c b/cmd/bootefi.c
index b52ba9cf219..21fe42c2cb8 100644
--- a/cmd/bootefi.c
+++ b/cmd/bootefi.c
@@ -226,7 +226,7 @@ static int do_bootefi(cmd_tbl_t *cmdtp, int flag, int argc, char * const argv[])
int r = 0;
if (argc < 2)
- return 1;
+ return CMD_RET_USAGE;
saddr = argv[1];
addr = simple_strtoul(saddr, NULL, 16);