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 | |
parent | 9d1a9e8bc18bea94adfa716073df3ed83fc4e895 (diff) | |
download | op-kernel-dev-b53688014e33256d4e3c08e89e563974dca98a98.zip op-kernel-dev-b53688014e33256d4e3c08e89e563974dca98a98.tar.gz |
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.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/scripts/kconfig/menu.c b/scripts/kconfig/menu.c index af66065..d365fc9 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... */ |