mirror of
https://github.com/Telecominfraproject/OpenCellular.git
synced 2025-11-25 10:45:02 +00:00
poppy: initializing next_menu_idx to current_menu_idx
Get rid of uninitialized variable warning. BUG=chrome-os-partner:61275 BRANCH=None TEST=make cgpt WERROR= STATIC=1 Change-Id: I31faa557406c6a90cfdea8571620675c81c0c0ec Signed-off-by: Shelley Chen <shchen@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/440432 Reviewed-by: Hung-Te Lin <hungte@chromium.org>
This commit is contained in:
@@ -393,7 +393,7 @@ VbError_t vb2_set_menu_items(VB_MENU new_current_menu,
|
||||
VbError_t vb2_update_menu()
|
||||
{
|
||||
VbError_t ret = VBERROR_SUCCESS;
|
||||
VB_MENU next_menu_idx;
|
||||
VB_MENU next_menu_idx = current_menu_idx;
|
||||
switch(current_menu) {
|
||||
case VB_MENU_DEV_WARNING:
|
||||
switch(current_menu_idx) {
|
||||
|
||||
Reference in New Issue
Block a user