aboutsummaryrefslogtreecommitdiff
path: root/cmd/bootmenu.c
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-06 08:52:24 -0600
committerTom Rini <trini@konsulko.com>2023-01-16 14:14:11 -0500
commitd0ca98dbd99c2534c9e96e4c226e52ab80f2248f (patch)
treeec90d07fc24388bde0ffb63d35da3f0cc5c77061 /cmd/bootmenu.c
parent5712976b26f7865f348aba51c9fa367c456e1795 (diff)
menu: Update bootmenu_loop() to return the code
Use the return value to save having to pass around a pointer. This also resolves any ambiguity about what *key contains when the function is called. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'cmd/bootmenu.c')
-rw-r--r--cmd/bootmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
index 086d04148a..43553dbcc9 100644
--- a/cmd/bootmenu.c
+++ b/cmd/bootmenu.c
@@ -96,7 +96,7 @@ static char *bootmenu_choice_entry(void *data)
key = bootmenu_autoboot_loop(menu, &esc);
} else {
/* Some key was pressed, so autoboot was stopped */
- bootmenu_loop(menu, &key, &esc);
+ key = bootmenu_loop(menu, &esc);
}
switch (key) {