From: Bin Meng Date: Sat, 13 Aug 2016 11:02:06 +0000 (-0700) Subject: cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments X-Git-Tag: v2016.09-rc2~14 X-Git-Url: https://git.sur5r.net/?a=commitdiff_plain;h=3c1dcef62adca0e0ff83ab925ca0b4b8c5fbc573;p=u-boot 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 Reviewed-by: Alexander Graf --- diff --git a/cmd/bootefi.c b/cmd/bootefi.c index b52ba9cf21..21fe42c2cb 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);