提交 4cb72612 编写于 作者: M Masahiro Yamada

kconfig: remove useless NULL pointer check in conf_write_dep()

conf_write_dep() has just one caller:

    conf_write_dep("include/config/auto.conf.cmd");

"name" always points to a valid string.
Signed-off-by: NMasahiro Yamada <yamada.masahiro@socionext.com>
上级 580c5b3e
......@@ -964,8 +964,6 @@ static int conf_write_dep(const char *name)
struct file *file;
FILE *out;
if (!name)
name = ".kconfig.d";
out = fopen("..config.tmp", "w");
if (!out)
return 1;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册