libcamera: mali-c55: Simplify bufferReady()

The PipelineHandler::completeBuffer() base class function returns
a boolean to indicate if there still are pending buffers in the
Request.

Simplify the bufferReady() function in the Mali-C55 pipeline handler
using the completeBuffer() return value.

Signed-off-by: Daniel Scally <dan.scally@ideasonboard.com>
Signed-off-by: Jacopo Mondi <jacopo.mondi@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
Daniel Scally 2024-11-15 10:13:24 +00:00
parent 3ed4e65f45
commit dac4ffe58f

View file

@ -893,11 +893,7 @@ void PipelineHandlerMaliC55::imageBufferReady(FrameBuffer *buffer)
{
Request *request = buffer->request();
completeBuffer(request, buffer);
if (request->hasPendingBuffers())
return;
if (completeBuffer(request, buffer))
completeRequest(request);
}