summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-01-01 17:34:05 +0100
committerMichal Marek <mmarek@suse.com>2016-01-05 11:19:13 +0100
commitaab24a897cfba9dd371f6aac45dbcdae0b23def6 (patch)
treed8152c417a73ca0e978d4d12fb347b0c5faa0e0d /scripts
parent74dba80913775c78a1e03221c9ea51027a8b7bcf (diff)
kconfig: return 'false' instead of 'no' in bool function
menu_is_visible() is a bool function and should use boolean return values. "no" is a tristate value which happens to also have a value of 0, but we should nevertheless use the right symbol for it. This is a very minor cleanup with no semantic change. Fixes: 86e187ff9 ("kconfig: add an option to determine a menu's visibility") Cc: Arnaud Lacombe <lacombar@gmail.com> Cc: Mauro Carvalho Chehab <mchehab@redhat.com> Signed-off-by: Vegard Nossum <vegard.nossum@oracle.com> Signed-off-by: Michal Marek <mmarek@suse.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/menu.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index b05cc3d4a9be..aed678e8a777 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -477,7 +477,7 @@ bool menu_is_visible(struct menu *menu)
if (menu->visibility) {
if (expr_calc_value(menu->visibility) == no)
- return no;
+ return false;
}
sym = menu->sym;