summaryrefslogtreecommitdiffstats
path: root/commands/boot.c
diff options
context:
space:
mode:
authorSascha Hauer <s.hauer@pengutronix.de>2014-06-19 09:43:01 +0200
committerSascha Hauer <s.hauer@pengutronix.de>2014-06-19 09:43:09 +0200
commit429717b48ccf3b56c3dd508513618763e2001b15 (patch)
treeabea3a94cf125b487e90b8d43f46ab8bdab8094d /commands/boot.c
parent636052ce1dbf3462c8c46a4bf978fcd534979d78 (diff)
downloadbarebox-429717b48ccf3b56c3dd508513618763e2001b15.tar.gz
barebox-429717b48ccf3b56c3dd508513618763e2001b15.tar.xz
boot: Fix boot -m
We have to continue when bootentries_collect succeeds, not when it fails. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'commands/boot.c')
-rw-r--r--commands/boot.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/commands/boot.c b/commands/boot.c
index a4dc6d76f7..ba26cac986 100644
--- a/commands/boot.c
+++ b/commands/boot.c
@@ -252,7 +252,7 @@ static void bootsources_menu(char *entries[], int num_entries)
}
blspec = bootentries_collect(entries, num_entries);
- if (blspec)
+ if (!blspec)
return;
entry_default = blspec_entry_default(blspec);