From a4987365a51a469d7a67b06b208b2b3217840601 Mon Sep 17 00:00:00 2001 From: Sascha Hauer Date: Tue, 13 May 2014 08:18:05 +0200 Subject: [PATCH] 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 --- commands/boot.c | 1 - 1 file changed, 1 deletion(-) diff --git a/commands/boot.c b/commands/boot.c index 4a839790d..468d47388 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: