X-Git-Url: https://git.sur5r.net/?a=blobdiff_plain;f=common%2Fmenu.c;h=ba393adc32cbf1e3c26f1e6dfcc8f247fd43691a;hb=0782bdf89878f3b4806b127b60f8d0e72c195354;hp=322b75e62f27e23d433c7504fc072502e651f33c;hpb=fc9d64ffcd94c1e22675830eae13956cc4fd822d;p=u-boot
diff --git a/common/menu.c b/common/menu.c
index 322b75e62f..ba393adc32 100644
--- a/common/menu.c
+++ b/common/menu.c
@@ -1,18 +1,7 @@
/*
* Copyright 2010-2011 Calxeda, Inc.
*
- * This program is free software; you can redistribute it and/or modify it
- * under the terms of the GNU General Public License as published by the Free
- * Software Foundation; either version 2 of the License, or (at your option)
- * any later version.
- *
- * This program is distributed in the hope it will be useful, but WITHOUT
- * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
- * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for
- * more details.
- *
- * You should have received a copy of the GNU General Public License along with
- * this program. If not, see .
+ * SPDX-License-Identifier: GPL-2.0+
*/
#include
@@ -176,7 +165,7 @@ static inline struct menu_item *menu_item_by_key(struct menu *m,
* Set *choice to point to the default item's data, if any default item was
* set, and returns 1. If no default item was set, returns -ENOENT.
*/
-static inline int menu_default_choice(struct menu *m, void **choice)
+int menu_default_choice(struct menu *m, void **choice)
{
if (m->default_item) {
*choice = m->default_item->data;