Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit aab24a89 authored by Vegard Nossum's avatar Vegard Nossum Committed by Michal Marek
Browse files

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: 86e187ff ("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: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarMichal Marek <mmarek@suse.com>
parent 74dba809
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;