From: Vegard Nossum Date: Fri, 1 Jan 2016 16:34:05 +0000 (+0100) Subject: kconfig: return 'false' instead of 'no' in bool function X-Git-Url: https://jxself.org/git/?p=carl9170fw.git;a=commitdiff_plain;h=fb6dc8e7a5db1d30bb9dc96fc86880dae9bb9006 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 Cc: Mauro Carvalho Chehab Signed-off-by: Vegard Nossum Signed-off-by: Michal Marek Signed-off-by: Christian Lamparter --- diff --git a/config/menu.c b/config/menu.c index b05cc3d..aed678e 100644 --- a/config/menu.c +++ b/config/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;