From: Masahiro Yamada Date: Fri, 10 May 2019 16:56:48 +0000 (+0900) Subject: kconfig: remove useless NULL pointer check in conf_write_dep() X-Git-Url: https://jxself.org/git/?a=commitdiff_plain;h=a57a7e78baeede9c999a67dcd812fbfc711463fa;p=carl9170fw.git 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 Signed-off-by: Christian Lamparter --- diff --git a/config/confdata.c b/config/confdata.c index 52f9282..f6461a6 100644 --- a/config/confdata.c +++ b/config/confdata.c @@ -1010,8 +1010,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;