From: Ulf Magnusson Date: Tue, 16 Jan 2018 20:39:02 +0000 (+0100) Subject: kconfig: Clarify menu and 'if' dependency propagation X-Git-Tag: v4.16-rc1~105^2~4 X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=commitdiff_plain;h=b53688014e33256d4e3c08e89e563974dca98a98;p=linux.git 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 Signed-off-by: Masahiro Yamada --- 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... */