projects
/
mesa.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b041bf9
)
disk_cache: remove unnecessary NULL-pointer guards
author
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:45 +0000
(13:58 +0200)
committer
Nicolai Hähnle
<nicolai.haehnle@amd.com>
Tue, 10 Oct 2017 11:58:45 +0000
(13:58 +0200)
Reviewed-by: Marek Olšák <marek.olsak@amd.com>
src/util/disk_cache.c
patch
|
blob
|
history
diff --git
a/src/util/disk_cache.c
b/src/util/disk_cache.c
index 63fd8e1f93a8cb1a3185ccd5ca26abaaa44165ae..e38cacb259bf228ee553c838e7ae1ac556e77891 100644
(file)
--- 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