]> git.baikalelectronics.ru Git - uboot.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)
commitffb6fe3deec20d1c40c5e04babe01041e8639110
tree72d74a038949af77cf5487eccb4d2074fec4766f
parent1e29126511a5afa7b87621585e671617d4bdf911
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