From: Nicolai Hähnle Date: Tue, 10 Oct 2017 11:58:45 +0000 (+0200) Subject: disk_cache: remove unnecessary NULL-pointer guards X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=76fcede3f44d5f6eaf9b99ef80914c326387a3e5;p=mesa.git disk_cache: remove unnecessary NULL-pointer guards Reviewed-by: Marek Olšák --- diff --git a/src/util/disk_cache.c b/src/util/disk_cache.c index 63fd8e1f93a..e38cacb259b 100644 --- a/src/util/disk_cache.c +++ b/src/util/disk_cache.c @@ -987,10 +987,8 @@ cache_put(void *job, int thread_index) */ if (fd != -1) close(fd); - if (filename_tmp) - free(filename_tmp); - if (filename) - free(filename); + free(filename_tmp); + free(filename); } void