aboutsummaryrefslogtreecommitdiffstats
path: root/scripts/kconfig/confdata.c
diff options
context:
space:
mode:
authorMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-11 01:56:48 +0900
committerMasahiro Yamada <yamada.masahiro@socionext.com>2019-05-14 23:23:16 +0900
commit4cb726121e2cce18d4db5e79347f3ade5fd661a2 (patch)
treef03ab6b5d0b0550179eac2dbe9fbb7b53ad4865e /scripts/kconfig/confdata.c
parentkconfig: make parent directories for the saved .config as needed (diff)
downloadlinux-dev-4cb726121e2cce18d4db5e79347f3ade5fd661a2.tar.xz
linux-dev-4cb726121e2cce18d4db5e79347f3ade5fd661a2.zip
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>
Diffstat (limited to '')
-rw-r--r--scripts/kconfig/confdata.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/scripts/kconfig/confdata.c b/scripts/kconfig/confdata.c
index d7bd353a8e50..b7bdd9690319 100644
--- a/scripts/kconfig/confdata.c
+++ b/scripts/kconfig/confdata.c
@@ -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;