diff options
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index c2a423a1c341..0fce20cb7f3c 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -61,10 +61,11 @@ void menu_end_entry(void) | |||
61 | { | 61 | { |
62 | } | 62 | } |
63 | 63 | ||
64 | void menu_add_menu(void) | 64 | struct menu *menu_add_menu(void) |
65 | { | 65 | { |
66 | current_menu = current_entry; | 66 | menu_end_entry(); |
67 | last_entry_ptr = ¤t_entry->list; | 67 | last_entry_ptr = ¤t_entry->list; |
68 | return current_menu = current_entry; | ||
68 | } | 69 | } |
69 | 70 | ||
70 | void menu_end_menu(void) | 71 | void menu_end_menu(void) |