mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 12:43:29 +02:00
kconfig: Remove duplicate call to sym_get_string_value()
Use the saved returned value of sym_get_string_value() instead of calling it twice. Signed-off-by: Mickaël Salaün <mic@linux.microsoft.com> Link: https://lore.kernel.org/r/20210215181511.2840674-2-mic@digikod.net Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
This commit is contained in:
committed by
Masahiro Yamada
parent
c75173a269
commit
f82bd80d37
@@ -137,7 +137,7 @@ static int conf_string(struct menu *menu)
|
|||||||
printf("%*s%s ", indent - 1, "", menu->prompt->text);
|
printf("%*s%s ", indent - 1, "", menu->prompt->text);
|
||||||
printf("(%s) ", sym->name);
|
printf("(%s) ", sym->name);
|
||||||
def = sym_get_string_value(sym);
|
def = sym_get_string_value(sym);
|
||||||
if (sym_get_string_value(sym))
|
if (def)
|
||||||
printf("[%s] ", def);
|
printf("[%s] ", def);
|
||||||
if (!conf_askvalue(sym, def))
|
if (!conf_askvalue(sym, def))
|
||||||
return 0;
|
return 0;
|
||||||
|
Reference in New Issue
Block a user