]> git.dujemihanovic.xyz Git - u-boot.git/commit
menu: menu_get_choice() return -ENOENT if menu item is empty
authorMasahisa Kojima <masahisa.kojima@linaro.org>
Thu, 28 Apr 2022 08:09:37 +0000 (17:09 +0900)
committerHeinrich Schuchardt <heinrich.schuchardt@canonical.com>
Tue, 3 May 2022 19:39:22 +0000 (21:39 +0200)
commit7f67525f99d8158f668af8198cc1d089a3dc4ee8
tree72d74a038949af77cf5487eccb4d2074fec4766f
parentc23bb03465c1107495b90c4b396d37a0bbe90bfc
menu: menu_get_choice() return -ENOENT if menu item is empty

menu_get_choice() needs to handle the case that menu item
is empty. In this case, menu_get_choice() returns -ENOENT.

Signed-off-by: Masahisa Kojima <masahisa.kojima@linaro.org>
Reviewed-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
Signed-off-by: Heinrich Schuchardt <heinrich.schuchardt@canonical.com>
common/menu.c