]> git.baikalelectronics.ru Git - kernel.git/commit
kconfig: Document 'if' flattening logic
authorUlf Magnusson <ulfalizer@gmail.com>
Sun, 14 Jan 2018 14:49:26 +0000 (15:49 +0100)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Sun, 21 Jan 2018 16:49:30 +0000 (01:49 +0900)
commite552b6a255bb3c99e5eaf7f12500c312922bd900
treed80aae3634157d080ee24c5031eb0829f2785574
parenta0d57233d7b81c7d445f07b4c99e74f0c98ab71d
kconfig: Document 'if' flattening logic

It is not obvious that this might refer to an 'if', making the code
pretty cryptic:

if (menu->list && (!menu->prompt || !menu->prompt->text)) {

Kconfig keeps the 'if' menu nodes even after flattening. Reflect that in
the example to be accurate.

No functional changes. Only comments added.

Signed-off-by: Ulf Magnusson <ulfalizer@gmail.com>
Signed-off-by: Masahiro Yamada <yamada.masahiro@socionext.com>
scripts/kconfig/menu.c