aboutsummaryrefslogtreecommitdiffstats
path: root/scripts
diff options
context:
space:
mode:
authorUlf Magnusson <ulfalizer@gmail.com>2018-01-16 15:39:02 -0500
committerMasahiro Yamada <yamada.masahiro@socionext.com>2018-01-21 13:30:09 -0500
commitb53688014e33256d4e3c08e89e563974dca98a98 (patch)
tree8198ce59a834b2e896c6e94615ce6ac55a6480ae /scripts
parent9d1a9e8bc18bea94adfa716073df3ed83fc4e895 (diff)
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 <ulfalizer@gmail.com> Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
Diffstat (limited to 'scripts')
-rw-r--r--scripts/kconfig/menu.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c
index af66065733bb..d365fc9513c5 100644
--- a/scripts/kconfig/menu.c
+++ b/scripts/kconfig/menu.c
@@ -332,8 +332,10 @@ void menu_finalize(struct menu *parent)
332 */ 332 */
333 parentdep = expr_alloc_symbol(sym); 333 parentdep = expr_alloc_symbol(sym);
334 } else if (parent->prompt) 334 } else if (parent->prompt)
335 /* Menu node for 'menu' */
335 parentdep = parent->prompt->visible.expr; 336 parentdep = parent->prompt->visible.expr;
336 else 337 else
338 /* Menu node for 'if' */
337 parentdep = parent->dep; 339 parentdep = parent->dep;
338 340
339 /* For each child menu node... */ 341 /* For each child menu node... */