Skip to content

Commit

Permalink
kconfig: remove useless NULL pointer check in conf_write_dep()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Masahiro Yamada committed May 14, 2019
1 parent 580c5b3 commit 4cb7261
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions scripts/kconfig/confdata.c
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 4cb7261

Please sign in to comment.