summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorEric Nelson <eric@nelint.com>2016-04-02 07:37:13 -0700
committerTom Rini <trini@konsulko.com>2016-04-11 12:44:38 -0400
commit195c94a24071fa6be913219e0d98bb210b06ccb5 (patch)
tree6fee3e9448b96bcfb708a14bcb9a771fea9411bd /cmd
parent7e8721467da2e7cf0076533be9b2050cdc22ab1e (diff)
downloadu-boot-imx-195c94a24071fa6be913219e0d98bb210b06ccb5.zip
u-boot-imx-195c94a24071fa6be913219e0d98bb210b06ccb5.tar.gz
u-boot-imx-195c94a24071fa6be913219e0d98bb210b06ccb5.tar.bz2
cmd: blkcache: simplify sub-command handling
Signed-off-by: Eric Nelson <eric@nelint.com> Acked-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'cmd')
-rw-r--r--cmd/blkcache.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/cmd/blkcache.c b/cmd/blkcache.c
index a3dd549..d7afe3e 100644
--- a/cmd/blkcache.c
+++ b/cmd/blkcache.c
@@ -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(