[PATCH 1/2] boot: fix multiple boot sources
Sascha Hauer
s.hauer at pengutronix.de
Mon May 12 23:23:39 PDT 2014
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 at pengutronix.de>
---
commands/boot.c | 1 -
1 file changed, 1 deletion(-)
diff --git a/commands/boot.c b/commands/boot.c
index 4a83979..468d473 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:
--
2.0.0.rc0
More information about the barebox
mailing list