From: Joel Rosdahl Date: Thu, 3 Jun 2010 19:53:33 +0000 (+0200) Subject: Remove redundant check X-Git-Tag: v3.0~62 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=49b61282fee363c0b4d59a4800a5fe2428b26d37;p=thirdparty%2Fccache.git Remove redundant check cache_dir is already verified by the check_cache_dir() call in main(). --- diff --git a/ccache.c b/ccache.c index 3ba22690a..92b17ff29 100644 --- a/ccache.c +++ b/ccache.c @@ -1786,13 +1786,6 @@ static void ccache(int argc, char *argv[]) /* find the real compiler */ find_compiler(argc, argv); - /* use the real compiler if HOME is not set */ - if (!cache_dir) { - cc_log("Unable to determine home directory"); - cc_log("ccache is disabled"); - failed(); - } - /* we might be disabled */ if (getenv("CCACHE_DISABLE")) { cc_log("ccache is disabled");