Commit 3c1dcef62adca0e0ff83ab925ca0b4b8c5fbc573

Authored by Bin Meng
Committed by Tom Rini
1 parent a391d5004e

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>

Showing 1 changed file with 1 additions and 1 deletions Side-by-side Diff

... ... @@ -226,7 +226,7 @@
226 226 int r = 0;
227 227  
228 228 if (argc < 2)
229   - return 1;
  229 + return CMD_RET_USAGE;
230 230 saddr = argv[1];
231 231  
232 232 addr = simple_strtoul(saddr, NULL, 16);