summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
authorVegard Nossum <vegard.nossum@oracle.com>2016-01-01 17:34:05 +0100
committerLuis Henriques <luis.henriques@canonical.com>2016-02-02 19:46:40 +0000
commit684b9df418e90b07f58ba663e443f8a80000a5e3 (patch)
tree9d27063dd61d176f1205eff1f2e904e6a83cb859 /scripts
parent3b6dec3f86e134401fc31e17e0857a042653c1a4 (diff)
kconfig: return 'false' instead of 'no' in bool function
commit aab24a897cfba9dd371f6aac45dbcdae0b23def6 upstream. 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> Signed-off-by: Luis Henriques <luis.henriques@canonical.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 72c9dba84c5d..876c45d756d0 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;