]> git.proxmox.com Git - mirror_qemu.git/commit
util/fifo8: Allow fifo8_pop_buf() to not populate popped length
authorPhilippe Mathieu-Daudé <philmd@linaro.org>
Thu, 9 Nov 2023 19:28:05 +0000 (20:28 +0100)
committerMark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
Wed, 10 Jan 2024 06:58:50 +0000 (06:58 +0000)
commitcd04033dbeb0bbdd613780ff4b412fc3d3c768d6
tree3675ba47ede055a9db075648d72476a80552ccd3
parent9468484fe904ab4691de6d9c34616667f377ceac
util/fifo8: Allow fifo8_pop_buf() to not populate popped length

There might be cases where we know the number of bytes we can
pop from the FIFO, or we simply don't care how many bytes is
returned. Allow fifo8_pop_buf() to take a NULL numptr.

Signed-off-by: Philippe Mathieu-Daudé <philmd@linaro.org>
Reviewed-by: Francisco Iglesias <frasse.iglesias@gmail.com>
Reviewed-by: Alex Bennée <alex.bennee@linaro.org>
Reviewed-by: Richard Henderson <richard.henderson@linaro.org>
Tested-by: Alex Bennée <alex.bennee@linaro.org>
Message-Id: <20231109192814.95977-2-philmd@linaro.org>
Signed-off-by: Mark Cave-Ayland <mark.cave-ayland@ilande.co.uk>
include/qemu/fifo8.h
util/fifo8.c