cmd_bootm.c: Correct check/return for unsupported sub-command
authorTom Rini <trini@ti.com>
Mon, 1 Jul 2013 13:09:23 +0000 (09:09 -0400)
committerTom Rini <trini@ti.com>
Thu, 4 Jul 2013 14:53:38 +0000 (10:53 -0400)
commitc479c1361ade3cf2346f41a922b85373ddff8a26
treea98ffd5b84f4133ce8723a127ae3a145184bd68a
parenta544eaddccbc16cfa01482122ea364706988ff18
cmd_bootm.c: Correct check/return for unsupported sub-command

With the do_bootm_states re-organization, we have the call to any
potential sub-commands in a single spot.  If one fails, we can then stop
right there and return to the caller.  Prior to these calls we have
already ensured that ret is zero so we will not be returning this error
for some other case.

Signed-off-by: Tom Rini <trini@ti.com>
Tested-by: Andreas Bießmann <andreas.devel@googlemail.com>
common/cmd_bootm.c