summaryrefslogtreecommitdiffstats
path: root/commands/boot.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-05-13 08:18:05 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-05-13 08:18:09 +0200
commita4987365a51a469d7a67b06b208b2b3217840601 (patch)
tree9a865274e8a877a764485b4c86f9ad4250dab14f /commands/boot.c
parentf5b552f1fe02a0a39ae859dbc7e7facefe022e3a (diff)
downloadbarebox-a4987365a51a469d7a67b06b208b2b3217840601.tar.gz
barebox-a4987365a51a469d7a67b06b208b2b3217840601.tar.xz
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>
Diffstat (limited to 'commands/boot.c')
-rw-r--r--commands/boot.c1
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: