aboutsummaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass2023-01-06 08:52:23 -0600
committerTom Rini2023-01-16 14:14:11 -0500
commit5712976b26f7865f348aba51c9fa367c456e1795 (patch)
treedb46234be425f7f86318957feac2896f8bdc19ec /cmd
parent2da4a15e7e947d2d304ec1ba392556c3e0393e13 (diff)
menu: Update bootmenu_autoboot_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')
-rw-r--r--cmd/bootmenu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/bootmenu.c b/cmd/bootmenu.c
index 1a14e8a1909..086d04148ab 100644
--- a/cmd/bootmenu.c
+++ b/cmd/bootmenu.c
@@ -93,7 +93,7 @@ static char *bootmenu_choice_entry(void *data)
while (1) {
if (menu->delay >= 0) {
/* Autoboot was not stopped */
- bootmenu_autoboot_loop(menu, &key, &esc);
+ key = bootmenu_autoboot_loop(menu, &esc);
} else {
/* Some key was pressed, so autoboot was stopped */
bootmenu_loop(menu, &key, &esc);