diff mbox series

[09/13] kconfig: qconf: remove redundant check in goBack()

Message ID 20241023181823.138524-9-masahiroy@kernel.org (mailing list archive)
State New
Headers show
Series [01/13] kconfig: qconf: remove mouse{Press,Move}Event() functions | expand

Commit Message

Masahiro Yamada Oct. 23, 2024, 6:17 p.m. UTC
The same check is performed in the configList->setParentMenu() call.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
---

 scripts/kconfig/qconf.cc | 3 ---
 1 file changed, 3 deletions(-)
diff mbox series

Patch

diff --git a/scripts/kconfig/qconf.cc b/scripts/kconfig/qconf.cc
index 1948cda048d2..acbc4331ebc5 100644
--- a/scripts/kconfig/qconf.cc
+++ b/scripts/kconfig/qconf.cc
@@ -1616,9 +1616,6 @@  void ConfigMainWindow::listFocusChanged(void)
 
 void ConfigMainWindow::goBack(void)
 {
-	if (configList->rootEntry == &rootmenu)
-		return;
-
 	configList->setParentMenu();
 }