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:
@@ -964,8 +964,6 @@ static int conf_write_dep(const char *name)
|
|||||||
struct file *file;
|
struct file *file;
|
||||||
FILE *out;
|
FILE *out;
|
||||||
|
|
||||||
if (!name)
|
|
||||||
name = ".kconfig.d";
|
|
||||||
out = fopen("..config.tmp", "w");
|
out = fopen("..config.tmp", "w");
|
||||||
if (!out)
|
if (!out)
|
||||||
return 1;
|
return 1;
|
||||||
|
|||||||
Reference in New Issue
Block a user