cmd: blkcache: simplify sub-command handling

Signed-off-by: Eric Nelson <eric@nelint.com>
Acked-by: Stephen Warren <swarren@nvidia.com>
This commit is contained in:
Eric Nelson 2016-04-02 07:37:13 -07:00 committed by Tom Rini
parent 7e8721467d
commit 195c94a240

View file

@ -73,12 +73,10 @@ static int do_blkcache(cmd_tbl_t *cmdtp, int flag,
c = find_cmd_tbl(argv[0], &cmd_blkc_sub[0], ARRAY_SIZE(cmd_blkc_sub));
if (c)
return c->cmd(cmdtp, flag, argc, argv);
else
if (!c)
return CMD_RET_USAGE;
return 0;
return c->cmd(cmdtp, flag, argc, argv);
}
U_BOOT_CMD(