mirror of
https://github.com/u-boot/u-boot.git
synced 2025-05-09 03:21:51 +00:00
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>
This commit is contained in:
parent
5712976b26
commit
d0ca98dbd9
4 changed files with 24 additions and 23 deletions
|
@ -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) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue