mirror of
https://gitlab.freedesktop.org/mesa/mesa.git
synced 2026-05-05 09:38:07 +02:00
util: fix u_fifo_pop()
Seems like no one ever depended on it to actually return false when fifo is empty. Fixes:6e61d06209("util: Add super simple fifo") Signed-off-by: Rob Clark <robdclark@chromium.org> Part-of: <https://gitlab.freedesktop.org/mesa/mesa/-/merge_requests/4366> (cherry picked from commitffd3226678)
This commit is contained in:
parent
b571cfabb6
commit
99471dbddc
2 changed files with 2 additions and 2 deletions
|
|
@ -580,7 +580,7 @@
|
|||
"description": "util: fix u_fifo_pop()",
|
||||
"nominated": true,
|
||||
"nomination_type": 1,
|
||||
"resolution": 0,
|
||||
"resolution": 1,
|
||||
"master_sha": null,
|
||||
"because_sha": "6e61d062093a71e267aed02870607fc5a0d7d8f4"
|
||||
},
|
||||
|
|
|
|||
|
|
@ -80,7 +80,7 @@ u_fifo_pop(struct util_fifo *fifo, void **ptr)
|
|||
|
||||
*ptr = array[fifo->tail];
|
||||
|
||||
++fifo->num;
|
||||
--fifo->num;
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue