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: Masahiro Yamada <yamada.masahiro@socionext.com>
This commit is contained in:
Masahiro Yamada 2019-05-11 01:56:48 +09:00
parent 580c5b3e1b
commit 4cb726121e
1 changed files with 0 additions and 2 deletions

View File

@ -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;