diff options
author | Tom Rini <trini@konsulko.com> | 2022-05-04 12:08:40 -0400 |
---|---|---|
committer | Tom Rini <trini@konsulko.com> | 2022-05-04 12:08:40 -0400 |
commit | 1739a6db5403d187902dcebca548de0644c8078f (patch) | |
tree | 62e9a921915bbd79cec42f528b6c454e8488f862 /common/menu.c | |
parent | c3d451d5e6b7c2ea6d83397d5b6c986ff6ab4ee3 (diff) | |
parent | 2158b0da220ccbe969bc18668263141d9a89f13e (diff) |
Merge tag 'efi-2022-07-rc2-2' of https://source.denx.de/u-boot/custodians/u-boot-efi
Pull request for efi-2022-07-rc2-2
* Test
Unit test for 'bootmenu' command
* UEFI
Preparatory patches for implementing a UEFI boot options based menu
Diffstat (limited to 'common/menu.c')
-rw-r--r-- | common/menu.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/common/menu.c b/common/menu.c index 5fb2ffbd06..f5fc6930a2 100644 --- a/common/menu.c +++ b/common/menu.c @@ -271,7 +271,10 @@ int menu_get_choice(struct menu *m, void **choice) if (!m || !choice) return -EINVAL; - if (!m->prompt || m->item_cnt == 1) + if (!m->item_cnt) + return -ENOENT; + + if (!m->prompt) return menu_default_choice(m, choice); return menu_interactive_choice(m, choice); |