9
0
Fork 0

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>
This commit is contained in:
Sascha Hauer 2014-05-13 08:18:05 +02:00
parent f5b552f1fe
commit a4987365a5
1 changed files with 0 additions and 1 deletions

View File

@ -446,7 +446,6 @@ static int do_boot(int argc, char *argv[])
ret = boot(sources[i]);
if (!ret)
break;
goto out;
}
out: