From 1b0f0337f0939398bf3c6d5f45c2d771674dc9cd Mon Sep 17 00:00:00 2001 From: Grazvydas Ignotas Date: Thu, 17 Jun 2010 00:29:28 +0300 Subject: [PATCH] pandora menu: always add serial option --- board/pandora/menu.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/board/pandora/menu.c b/board/pandora/menu.c index 02216ef2ed4..86c1576c3f3 100644 --- a/board/pandora/menu.c +++ b/board/pandora/menu.c @@ -119,7 +119,7 @@ static void menu_init(void) dev_desc = get_dev("mmc1", 0); if (dev_desc == NULL) { printf("dev desc null\n"); - return; + goto finish; } /* kill stdout while we search for bootfiles */ @@ -163,6 +163,7 @@ found: menu_items[menu_item_count++] = mitem; } +finish: if (menu_item_count < ARRAY_SIZE(menu_items)) menu_items[menu_item_count++] = &default_menu_items[2]; -- 2.39.5