Skip to contentSkip to conversation

kconfig: remove a spurious self-assignment

PATCH In review Lukas Bulwahn 2 participants 2 messages Aug 30, 2018 – Aug 31, 2018

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

PATCH 1/1 kconfig: remove a spurious self-assignment

The self assignment was probably introduced by an automated code refactoring in
commit 694c49a7c01c ("kconfig: drop localization support").

The issue was identified by a self-assign warning when running make menuconfig with clang.

---
 scripts/kconfig/mconf.c | 1 -
 1 file changed, 1 deletion(-)
scripts/kconfig/mconf.c +0 -1
index 83b5836..143c05f 100644
@@ -490,7 +490,6 @@ static void build_conf(struct menu *menu)
 			switch (prop->type) {
 			case P_MENU:
 				child_count++;
-				prompt = prompt;
 				if (single_menu_mode) {
 					item_make("%s%*c%s",
 						  menu->data ? "-->" : "++>",
Signature · 1 line
2.7.4
#1 lore raw

2018-08-30 18:18 GMT+09:00 Lukas Bulwahn <[email protected]>:

Quoted 9 lines

The self assignment was probably introduced by an automated code refactoring in
commit 694c49a7c01c ("kconfig: drop localization support").

The issue was identified by a self-assign warning when running make menuconfig with clang.

---

Applied to linux-kbuild/fixes. Thanks!

Quoted 18 lines
 scripts/kconfig/mconf.c | 1 -
 1 file changed, 1 deletion(-)
scripts/kconfig/mconf.c +0 -2
index 83b5836..143c05f 100644
@@ -490,7 +490,6 @@ static void build_conf(struct menu *menu)
                        switch (prop->type) {
                        case P_MENU:
                                child_count++;
-                               prompt = prompt;
                                if (single_menu_mode) {
                                        item_make("%s%*c%s",
                                                  menu->data ? "-->" : "++>",
--

2.7.4

Signature · 2 lines
Best Regards
Masahiro Yamada