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:
parent
f5b552f1fe
commit
a4987365a5
|
@ -446,7 +446,6 @@ static int do_boot(int argc, char *argv[])
|
|||
ret = boot(sources[i]);
|
||||
if (!ret)
|
||||
break;
|
||||
goto out;
|
||||
}
|
||||
|
||||
out:
|
||||
|
|
Loading…
Reference in New Issue