Skip to content

Commit b536880

Browse files
ulfalizermasahir0y
authored andcommitted
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: Ulf Magnusson <[email protected]> Signed-off-by: Masahiro Yamada <[email protected]>
1 parent 9d1a9e8 commit b536880

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

scripts/kconfig/menu.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -332,8 +332,10 @@ void menu_finalize(struct menu *parent)
332332
*/
333333
parentdep = expr_alloc_symbol(sym);
334334
} else if (parent->prompt)
335+
/* Menu node for 'menu' */
335336
parentdep = parent->prompt->visible.expr;
336337
else
338+
/* Menu node for 'if' */
337339
parentdep = parent->dep;
338340

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

0 commit comments

Comments
 (0)