kconfig: remove useless NULL pointer check in conf_write_dep()
authorMasahiro Yamada <yamada.masahiro@socionext.com>
Fri, 10 May 2019 16:56:48 +0000 (01:56 +0900)
committerMasahiro Yamada <yamada.masahiro@socionext.com>
Tue, 14 May 2019 14:23:16 +0000 (23:23 +0900)
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>
scripts/kconfig/confdata.c

index d7bd353a8e505cd68f90825466376d3b4e1819b5..b7bdd9690319c9a9fe40de3903dcc60cc645a115 100644 (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;