]> git.dujemihanovic.xyz Git - u-boot.git/commitdiff
cmd: efi_loader: Return CMD_RET_USAGE in case of not enough arguments
authorBin Meng <bmeng.cn@gmail.com>
Sat, 13 Aug 2016 11:02:06 +0000 (04:02 -0700)
committerTom Rini <trini@konsulko.com>
Sat, 20 Aug 2016 15:35:09 +0000 (11:35 -0400)
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>
cmd/bootefi.c

index b52ba9cf219738ac461e9c36048076f2d4a86b87..21fe42c2cb8e7e2e49f7e0ecd0dc5c1ae196ea72 100644 (file)
@@ -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);