kconfig: remove redundant input_mode test for check_conf() loop
[carl9170fw.git] / config / conf.c
index 392cefd68daf03a68be5747733c51118c623e72b..927e3ba5830f0aeb7fdf19de3768f013494411f2 100644 (file)
@@ -354,8 +354,7 @@ static void conf(struct menu *menu)
 
                switch (prop->type) {
                case P_MENU:
-                       if ((input_mode == listnewconfig ||
-                            input_mode == oldnoconfig) &&
+                       if (input_mode == listnewconfig) &&
                            rootEntry != menu) {
                                check_conf(menu);
                                return;
@@ -419,7 +418,7 @@ static void check_conf(struct menu *menu)
                                if (sym->name && !sym_is_choice_value(sym)) {
                                        printf("%s%s\n", CONFIG_, sym->name);
                                }
-                       } else if (input_mode != oldnoconfig) {
+                       } else {
                                if (!conf_cnt++)
                                        printf(_("*\n* Restart config...\n*\n"));
                                rootEntry = menu_get_parent_menu(menu);
@@ -630,9 +629,7 @@ int main(int ac, char **av)
                do {
                        conf_cnt = 0;
                        check_conf(&rootmenu);
-               } while (conf_cnt &&
-                        (input_mode != listnewconfig &&
-                         input_mode != oldnoconfig));
+               } while (conf_cnt);
                break;
        }