projects
/
platform
/
kernel
/
u-boot.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
menu: always show the menu regardless of the number of entry
[platform/kernel/u-boot.git]
/
common
/
menu.c
diff --git
a/common/menu.c
b/common/menu.c
index
5fb2ffb
..
b577d80
100644
(file)
--- a/
common/menu.c
+++ b/
common/menu.c
@@
-271,7
+271,7
@@
int menu_get_choice(struct menu *m, void **choice)
if (!m || !choice)
return -EINVAL;
- if (!m->prompt
|| m->item_cnt == 1
)
+ if (!m->prompt)
return menu_default_choice(m, choice);
return menu_interactive_choice(m, choice);