kconfig: refactor conf_write_heading()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 1 Oct 2021 05:32:45 +0000 (14:32 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 11 Oct 2021 14:13:14 +0000 (23:13 +0900)
commitca51b26b4a25b05c9b438ed85c4750bfb6f2d9ab
tree4487bfd451e05b6ab538d49184bca2cf1b742ad9
parent229d0cfae5b21bfc42525cf43b0b4279243acc4e
kconfig: refactor conf_write_heading()

All the call sites of conf_write_heading() pass NULL to the third
argument, and it is not used in the function.

Also, the print_comment hooks are doing much more complex than
needed.

Rewrite the code.

Signed-off-by: Masahiro Yamada <masahiroy@kernel.org>
scripts/kconfig/confdata.c