Skip to contentSkip to conversation

kconfig: remove redundant assignment prompt = prompt

PATCH In review Denis Efremov 2 participants 2 messages Aug 31, 2020

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 kconfig: remove redundant assignment prompt = prompt

Semi-automatic removing of localization macros changed the line from "prompt = _(prompt);" to "prompt = prompt;". Drop the reduntand assignment.

Fixes 694c49a7c01c ("kconfig: drop localization support")
---
 scripts/kconfig/nconf.c | 1 -
 1 file changed, 1 deletion(-)
scripts/kconfig/nconf.c +0 -1
index daf1c1506ec4..e0f965529166 100644
@@ -755,7 +755,6 @@ static void build_conf(struct menu *menu)
 			switch (ptype) {
 			case P_MENU:
 				child_count++;
-				prompt = prompt;
 				if (single_menu_mode) {
 					item_make(menu, 'm',
 						"%s%*c%s",
Signature · 1 line
2.26.2
#1 lore raw
Quoted 8 lines · Denis Efremov

Semi-automatic removing of localization macros changed the line from "prompt = _(prompt);" to "prompt = prompt;". Drop the reduntand assignment.

Fixes 694c49a7c01c ("kconfig: drop localization support")

---

Applied to linux-kbuild/fixes. Thanks.

Quoted 18 lines
 scripts/kconfig/nconf.c | 1 -
 1 file changed, 1 deletion(-)
scripts/kconfig/nconf.c +0 -2
index daf1c1506ec4..e0f965529166 100644
@@ -755,7 +755,6 @@ static void build_conf(struct menu *menu)
                        switch (ptype) {
                        case P_MENU:
                                child_count++;
-                               prompt = prompt;
                                if (single_menu_mode) {
                                        item_make(menu, 'm',
                                                "%s%*c%s",
--

2.26.2

Signature · 2 lines
Best Regards
Masahiro Yamada