From ffd32266780a83695ae5dd8d36b73fe970cfe4dc Mon Sep 17 00:00:00 2001 From: Rob Clark Date: Sat, 28 Mar 2020 11:14:05 -0700 Subject: [PATCH] util: fix u_fifo_pop() Seems like no one ever depended on it to actually return false when fifo is empty. Fixes: 6e61d062093 ("util: Add super simple fifo") Signed-off-by: Rob Clark Part-of: --- src/gallium/auxiliary/util/u_fifo.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/gallium/auxiliary/util/u_fifo.h b/src/gallium/auxiliary/util/u_fifo.h index a7aad6179d9..b53a3ddd52d 100644 --- a/src/gallium/auxiliary/util/u_fifo.h +++ b/src/gallium/auxiliary/util/u_fifo.h @@ -80,7 +80,7 @@ u_fifo_pop(struct util_fifo *fifo, void **ptr) *ptr = array[fifo->tail]; - ++fifo->num; + --fifo->num; return TRUE; } -- 2.30.2