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 commit ffd3226678)
This commit is contained in:
Rob Clark 2020-03-28 11:14:05 -07:00 committed by Eric Engestrom
parent b571cfabb6
commit 99471dbddc
2 changed files with 2 additions and 2 deletions

View file

@ -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"
},

View file

@ -80,7 +80,7 @@ u_fifo_pop(struct util_fifo *fifo, void **ptr)
*ptr = array[fifo->tail];
++fifo->num;
--fifo->num;
return TRUE;
}