Title: [7969] trunk/scripts/kconfig/conf.c: [#5763] kconfig: skip choices with no children
- Revision
- 7969
- Author
- vapier
- Date
- 2009-12-10 08:05:55 -0500 (Thu, 10 Dec 2009)
Log Message
[#5763] kconfig: skip choices with no children
Modified Paths
Diff
Modified: trunk/scripts/kconfig/conf.c (7968 => 7969)
--- trunk/scripts/kconfig/conf.c 2009-12-10 09:06:58 UTC (rev 7968)
+++ trunk/scripts/kconfig/conf.c 2009-12-10 13:05:55 UTC (rev 7969)
@@ -231,6 +231,13 @@
int type;
bool is_new;
+ /* Make sure at least one child is visible before we show anything */
+ for (child = menu->list; child; child = child->next)
+ if (menu_is_visible(child))
+ break;
+ if (!child)
+ return 1;
+
sym = menu->sym;
type = sym_get_type(sym);
is_new = !sym_has_value(sym);
_______________________________________________
Linux-kernel-commits mailing list
[email protected]
https://blackfin.uclinux.org/mailman/listinfo/linux-kernel-commits