aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--scripts/kconfig/menu.c10
1 files changed, 4 insertions, 6 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index beeb92e75f8f..8c2a97e60faf 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -10,8 +10,7 @@
10 10
11#include "lkc.h" 11#include "lkc.h"
12 12
13static const char nohelp_text[] = N_( 13static const char nohelp_text[] = "There is no help available for this option.";
14 "There is no help available for this option.\n");
15 14
16struct menu rootmenu; 15struct menu rootmenu;
17static struct menu **last_entry_ptr; 16static struct menu **last_entry_ptr;
@@ -595,15 +594,14 @@ struct gstr get_relations_str(struct symbol **sym_arr)
595void menu_get_ext_help(struct menu *menu, struct gstr *help) 594void menu_get_ext_help(struct menu *menu, struct gstr *help)
596{ 595{
597 struct symbol *sym = menu->sym; 596 struct symbol *sym = menu->sym;
597 const char *help_text = nohelp_text;
598 598
599 if (menu_has_help(menu)) { 599 if (menu_has_help(menu)) {
600 if (sym->name) 600 if (sym->name)
601 str_printf(help, "%s%s:\n\n", CONFIG_, sym->name); 601 str_printf(help, "%s%s:\n\n", CONFIG_, sym->name);
602 str_append(help, _(menu_get_help(menu))); 602 help_text = menu_get_help(menu);
603 str_append(help, "\n");
604 } else {
605 str_append(help, nohelp_text);
606 } 603 }
604 str_printf(help, "%s\n", _(help_text));
607 if (sym) 605 if (sym)
608 get_symbol_str(help, sym); 606 get_symbol_str(help, sym);
609} 607}