diff options
author | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 06:34:42 -0400 |
---|---|---|
committer | Thomas Gleixner <tglx@linutronix.de> | 2013-07-12 06:34:42 -0400 |
commit | f2006e27396f55276f24434f56e208d86e7f9908 (patch) | |
tree | 71896db916d33888b4286f80117d3cac0da40e6d /scripts/kconfig/menu.c | |
parent | e399eb56a6110e13f97e644658648602e2b08de7 (diff) | |
parent | 9903883f1dd6e86f286b7bfa6e4b423f98c1cd9e (diff) |
Merge branch 'linus' into timers/urgent
Get upstream changes so we can apply fixes against them
Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
Diffstat (limited to 'scripts/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index fd3f0180e08f..7e233a6ca64e 100644 --- a/scripts/kconfig/menu.c +++ b/scripts/kconfig/menu.c | |||
@@ -443,6 +443,22 @@ bool menu_has_prompt(struct menu *menu) | |||
443 | return true; | 443 | return true; |
444 | } | 444 | } |
445 | 445 | ||
446 | /* | ||
447 | * Determine if a menu is empty. | ||
448 | * A menu is considered empty if it contains no or only | ||
449 | * invisible entries. | ||
450 | */ | ||
451 | bool menu_is_empty(struct menu *menu) | ||
452 | { | ||
453 | struct menu *child; | ||
454 | |||
455 | for (child = menu->list; child; child = child->next) { | ||
456 | if (menu_is_visible(child)) | ||
457 | return(false); | ||
458 | } | ||
459 | return(true); | ||
460 | } | ||
461 | |||
446 | bool menu_is_visible(struct menu *menu) | 462 | bool menu_is_visible(struct menu *menu) |
447 | { | 463 | { |
448 | struct menu *child; | 464 | struct menu *child; |