diff options
| author | Simon Glass <[email protected]> | 2023-01-06 08:52:24 -0600 |
|---|---|---|
| committer | Tom Rini <[email protected]> | 2023-01-16 14:14:11 -0500 |
| commit | d0ca98dbd99c2534c9e96e4c226e52ab80f2248f (patch) | |
| tree | ec90d07fc24388bde0ffb63d35da3f0cc5c77061 /cmd/eficonfig.c | |
| parent | 5712976b26f7865f348aba51c9fa367c456e1795 (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 <[email protected]>
Diffstat (limited to 'cmd/eficonfig.c')
| -rw-r--r-- | cmd/eficonfig.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmd/eficonfig.c b/cmd/eficonfig.c index 8f246bc271f..96cb1a367f3 100644 --- a/cmd/eficonfig.c +++ b/cmd/eficonfig.c @@ -191,7 +191,7 @@ static char *eficonfig_choice_entry(void *data) struct efimenu *efi_menu = data; while (1) { - bootmenu_loop((struct bootmenu_data *)efi_menu, &key, &esc); + key = bootmenu_loop((struct bootmenu_data *)efi_menu, &esc); switch (key) { case BKEY_UP: @@ -1868,7 +1868,7 @@ static efi_status_t eficonfig_choice_change_boot_order(struct efimenu *efi_menu) struct eficonfig_entry *entry, *tmp; while (1) { - bootmenu_loop(NULL, &key, &esc); + key = bootmenu_loop(NULL, &esc); switch (key) { case BKEY_PLUS: |
