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

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
...@@ -332,8 +332,10 @@ void menu_finalize(struct menu *parent) ...@@ -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... */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment