From: Joel Rosdahl Date: Wed, 30 Mar 2016 19:48:20 +0000 (+0200) Subject: Remove unnecessary check of create_tmp_file return value X-Git-Tag: v3.3~87 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a9306d2d2d0b3820b196d9de9187176f17510b9f;p=thirdparty%2Fccache.git Remove unnecessary check of create_tmp_file return value create_tmp_file never returns NULL. --- diff --git a/ccache.c b/ccache.c index ee0496784..14e97eb73 100644 --- a/ccache.c +++ b/ccache.c @@ -914,13 +914,6 @@ use_relative_paths_in_depfile(const char *depfile) } tmp_file = format("%s.tmp", depfile); tmpf = create_tmp_file(&tmp_file, "w"); - if (!tmpf) { - cc_log("Cannot create temporary dependency file: %s (%s)", tmp_file, - strerror(errno)); - free(tmp_file); - fclose(f); - return; - } while (fgets(buf, sizeof(buf), f) && !ferror(tmpf)) { token = strtok_r(buf, " \t", &saveptr);