util/disk_cache: remove unused function param
Reviewed-by: Marek Olšák <marek.olsak@amd.com> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/7059>
This commit is contained in:
parent
5931d783c8
commit
91ace074d2
|
@ -52,8 +52,7 @@ write_all(int fd, const void *buf, size_t count);
|
|||
* of the data written to disk.
|
||||
*/
|
||||
static size_t
|
||||
deflate_and_write_to_disk(const void *in_data, size_t in_data_size, int dest,
|
||||
const char *filename)
|
||||
deflate_and_write_to_disk(const void *in_data, size_t in_data_size, int dest)
|
||||
{
|
||||
#ifdef HAVE_ZSTD
|
||||
/* from the zstd docs (https://facebook.github.io/zstd/zstd_manual.html):
|
||||
|
@ -765,7 +764,7 @@ disk_cache_write_item_to_disk(struct disk_cache_put_job *dc_job,
|
|||
* perform an atomic increment of the total cache size.
|
||||
*/
|
||||
size_t file_size = deflate_and_write_to_disk(dc_job->data, dc_job->size,
|
||||
fd, filename_tmp);
|
||||
fd);
|
||||
if (file_size == 0) {
|
||||
unlink(filename_tmp);
|
||||
goto done;
|
||||
|
|
Loading…
Reference in New Issue