Commit b5368801 authored by Ulf Magnusson's avatar Ulf Magnusson Committed by Masahiro Yamada
Browse files

kconfig: Clarify menu and 'if' dependency propagation



It is not obvious that the last two cases refer to menus and ifs,
respectively, in the conditional that sets 'parentdep'.

Automatic submenu creation is done later, so the parent can't be a
symbol here.

No functional changes. Only comments added.

Signed-off-by: default avatarUlf Magnusson <ulfalizer@gmail.com>
Signed-off-by: default avatarMasahiro Yamada <yamada.masahiro@socionext.com>
parent 9d1a9e8b
Loading
Loading
Loading
Loading
+2 −0
Original line number Original line Diff line number Diff line
@@ -332,8 +332,10 @@ void menu_finalize(struct menu *parent)
			 */
			 */
			parentdep = expr_alloc_symbol(sym);
			parentdep = expr_alloc_symbol(sym);
		} else if (parent->prompt)
		} else if (parent->prompt)
			/* Menu node for 'menu' */
			parentdep = parent->prompt->visible.expr;
			parentdep = parent->prompt->visible.expr;
		else
		else
			/* Menu node for 'if' */
			parentdep = parent->dep;
			parentdep = parent->dep;


		/* For each child menu node... */
		/* For each child menu node... */