diff options
author | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-13 08:18:05 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2014-05-13 08:18:09 +0200 |
commit | a4987365a51a469d7a67b06b208b2b3217840601 (patch) | |
tree | 9a865274e8a877a764485b4c86f9ad4250dab14f | |
parent | f5b552f1fe02a0a39ae859dbc7e7facefe022e3a (diff) | |
download | barebox-a4987365a51a469d7a67b06b208b2b3217840601.tar.gz |
boot: fix multiple boot sources
When there are multiple bootsources barebox should try booting them
until one succeeds. This is broken because we bail out of the iteration
loop with a goto. Remove the goto to fix this.
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
-rw-r--r-- | commands/boot.c | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/commands/boot.c b/commands/boot.c index 4a839790d1..468d473882 100644 --- a/commands/boot.c +++ b/commands/boot.c @@ -446,7 +446,6 @@ static int do_boot(int argc, char *argv[]) ret = boot(sources[i]); if (!ret) break; - goto out; } out: |