From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from zen.linaroharston ([85.9.250.243]) by smtp.gmail.com with ESMTPSA id c13-20020a5d4ccd000000b003078bb639bdsm10966516wrt.68.2023.05.23.06.25.13 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 23 May 2023 06:25:13 -0700 (PDT) Received: from zen (localhost [127.0.0.1]) by zen.linaroharston (Postfix) with ESMTP id 1939D1FFBB; Tue, 23 May 2023 14:25:13 +0100 (BST) References: <20230522153144.30610-1-philmd@linaro.org> <20230522153144.30610-3-philmd@linaro.org> User-agent: mu4e 1.11.6; emacs 29.0.91 From: Alex =?utf-8?Q?Benn=C3=A9e?= To: Philippe =?utf-8?Q?Mathieu-Daud=C3=A9?= Cc: qemu-devel@nongnu.org, Paolo Bonzini , qemu-arm@nongnu.org, Evgeny Iakovlev , =?utf-8?Q?Marc-Andr=C3=A9?= Lureau , Peter Maydell Subject: Re: [PATCH 02/12] util/fifo8: Allow fifo8_pop_buf() to not populate popped length Date: Tue, 23 May 2023 14:25:07 +0100 In-reply-to: <20230522153144.30610-3-philmd@linaro.org> Message-ID: <87bkib5gef.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-TUID: KWrFpj9HlNGa Philippe Mathieu-Daud=C3=A9 writes: > 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=C3=A9 Reviewed-by: Alex Benn=C3=A9e --=20 Alex Benn=C3=A9e Virtualisation Tech Lead @ Linaro