History

kconfig: Remove duplicate call to sym_get_string_value()

Use the saved returned value of sym_get_string_value() instead of calling it twice.

Mickaël Salaün committed 5 years ago

Commit f82bd801 parent c75173a1 file · +1 −1Browse files

Unified · Split

scripts/kconfig/conf.c+1−1
@@ -137,7 +137,7 @@ static int conf_string(struct menu *menu) · 136 unmodified lines
137137 printf("%*s%s ", indent - 1, "", menu->prompt->text);
138138 printf("(%s) ", sym->name);
139139 def = sym_get_string_value(sym);
140− if (sym_get_string_value(sym))
140+ if (def)
141141 printf("[%s] ", def);
142142 if (!conf_askvalue(sym, def))
143143 return 0;