libcamera: software_isp: Move a non-loop condition out of the loop
The check for the number of outputs is done in a loop over the outputs. It should be moved out of the loop as it's not loop specific and is just repeated there. This is a cosmetic change not changing any functionality. Signed-off-by: Milan Zamazal <mzamazal@redhat.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
This commit is contained in:
parent
f5da05ed03
commit
818b737146
1 changed files with 4 additions and 2 deletions
|
@ -291,11 +291,13 @@ int SoftwareIsp::queueBuffers(uint32_t frame, FrameBuffer *input,
|
|||
if (outputs.empty())
|
||||
return -EINVAL;
|
||||
|
||||
/* We only support a single stream for now. */
|
||||
if (outputs.size() != 1)
|
||||
return -EINVAL;
|
||||
|
||||
for (auto [stream, buffer] : outputs) {
|
||||
if (!buffer)
|
||||
return -EINVAL;
|
||||
if (outputs.size() != 1) /* only single stream atm */
|
||||
return -EINVAL;
|
||||
}
|
||||
|
||||
for (auto iter = outputs.begin(); iter != outputs.end(); iter++)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue