libcamera: ipu3: Remove dead code check

Since the re-implementation of the IPU3 pipeline handler
configuration procedure, the main output is always assigned in
case any YUV stream is requested.

Remove a dead code block that checks for the main output to be
valid.

Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Niklas Söderlund <niklas.soderlund@ragnatech.se>
Signed-off-by: Jacopo Mondi <jacopo@jmondi.org>
This commit is contained in:
Jacopo Mondi
2020-09-24 15:58:51 +02:00
parent be9feda2ad
commit 60ade5d0e0

View File

@@ -506,12 +506,6 @@ int PipelineHandlerIPU3::configure(Camera *camera, CameraConfiguration *c)
* the configuration of the active one for that purpose (there should
* be at least one active stream in the configuration request).
*/
if (!mainCfg) {
ret = imgu->configureOutput(*vfCfg, &outputFormat);
if (ret)
return ret;
}
if (!vfCfg) {
ret = imgu->configureViewfinder(*mainCfg, &outputFormat);
if (ret)