]> git.ipfire.org Git - thirdparty/ccache.git/commitdiff
Remove redundant check
authorJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:53:33 +0000 (21:53 +0200)
committerJoel Rosdahl <joel@rosdahl.net>
Thu, 3 Jun 2010 19:53:33 +0000 (21:53 +0200)
cache_dir is already verified by the check_cache_dir() call in main().

ccache.c

index 3ba22690aec2bc9dab6c3c042b7f1f883b0bcd6c..92b17ff298deee2e3664786fa070471950475537 100644 (file)
--- 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");