Skip to content
Snippets Groups Projects
Commit f1604f69 authored by Timothy Arceri's avatar Timothy Arceri Committed by Juan A. Suárez
Browse files

gallium/pipebuffer: fix parenthesis location


Without this the return value will never get set to -1. This
was first added in 49866c8f and copied in 2b396eee.

Fixes: 2b396eee "gallium/pb_cache: add a copy of cache bufmgr independent of pb_manager"

Reviewed-by: default avatarMarek Olšák <marek.olsak@amd.com>
Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=102342
(cherry picked from commit 7e9b7ec0)
parent 44c7d1aa
No related branches found
No related tags found
No related merge requests found
......@@ -167,7 +167,7 @@ pb_cache_reclaim_buffer(struct pb_cache *mgr, pb_size size,
cur_entry = LIST_ENTRY(struct pb_cache_entry, cur, head);
if (!entry && (ret = pb_cache_is_buffer_compat(cur_entry, size,
alignment, usage) > 0))
alignment, usage)) > 0)
entry = cur_entry;
else if (os_time_timeout(cur_entry->start, cur_entry->end, now))
destroy_buffer_locked(cur_entry);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment