Skip to content
Snippets Groups Projects
Commit 195c94a2 authored by Eric Nelson's avatar Eric Nelson Committed by Tom Rini
Browse files

cmd: blkcache: simplify sub-command handling

parent 7e872146
No related branches found
No related tags found
No related merge requests found
......@@ -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(
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment