summaryrefslogtreecommitdiff
path: root/cmd
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2023-01-06 17:52:23 +0300
committerTom Rini <trini@konsulko.com>2023-01-16 22:14:11 +0300
commit5712976b26f7865f348aba51c9fa367c456e1795 (patch)
treedb46234be425f7f86318957feac2896f8bdc19ec /cmd
parent2da4a15e7e947d2d304ec1ba392556c3e0393e13 (diff)
downloadu-boot-5712976b26f7865f348aba51c9fa367c456e1795.tar.xz
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 1a14e8a190..086d04148a 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);