diff options
author | Ulf Magnusson <ulfalizer@gmail.com> | 2018-01-16 21:39:02 +0100 |
---|---|---|
committer | Masahiro Yamada <yamada.masahiro@socionext.com> | 2018-01-22 03:30:09 +0900 |
commit | b53688014e33256d4e3c08e89e563974dca98a98 (patch) | |
tree | 8198ce59a834b2e896c6e94615ce6ac55a6480ae /scripts/kconfig/menu.c | |
parent | 9d1a9e8bc18bea94adfa716073df3ed83fc4e895 (diff) | |
download | linux-b53688014e33256d4e3c08e89e563974dca98a98.tar.bz2 |
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/kconfig/menu.c')
-rw-r--r-- | scripts/kconfig/menu.c | 2 |
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) */ parentdep = expr_alloc_symbol(sym); } else if (parent->prompt) + /* Menu node for 'menu' */ parentdep = parent->prompt->visible.expr; else + /* Menu node for 'if' */ parentdep = parent->dep; /* For each child menu node... */ |