kconfig: refactor conf_write_dep()
authorMasahiro Yamada <masahiroy@kernel.org>
Fri, 1 Oct 2021 05:32:51 +0000 (14:32 +0900)
committerMasahiro Yamada <masahiroy@kernel.org>
Mon, 11 Oct 2021 14:13:23 +0000 (23:13 +0900)
commit00d674cb35362dd30df7ff1e0003ad6d6c3ebf3a
treee7179188ca497e9a178babffc035f796063e42ec
parent57ddd07c456053dfdabebc6a2d030c57cd3fb75b
kconfig: refactor conf_write_dep()

The if ... else inside the for-loop is unneeded because one empty
line is placed after printing the last element of deps_config.

Currently, all errors in conf_write_dep() are ignored. Add proper
error checks.

Rename it to conf_write_autoconf_cmd(), which is more intuitive.

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