From: Grazvydas Ignotas Date: Wed, 16 Jun 2010 21:29:28 +0000 (+0300) Subject: pandora menu: always add serial option X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=1b0f0337f0939398bf3c6d5f45c2d771674dc9cd;p=pandora-u-boot.git pandora menu: always add serial option --- 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];