menu: Update bootmenu_loop() to return the code
authorSimon Glass <sjg@chromium.org>
Fri, 6 Jan 2023 14:52:24 +0000 (08:52 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 16 Jan 2023 19:14:11 +0000 (14:14 -0500)
commitd0ca98dbd99c2534c9e96e4c226e52ab80f2248f
treeec90d07fc24388bde0ffb63d35da3f0cc5c77061
parent5712976b26f7865f348aba51c9fa367c456e1795
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 <sjg@chromium.org>
cmd/bootmenu.c
cmd/eficonfig.c
common/menu.c
include/menu.h