From 60ade5d0e08cafb4643b9cd3aada6f586560db51 Mon Sep 17 00:00:00 2001 From: Jacopo Mondi Date: Thu, 24 Sep 2020 15:58:51 +0200 Subject: libcamera: ipu3: Remove dead code check MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Reviewed-by: Niklas Söderlund Signed-off-by: Jacopo Mondi --- src/libcamera/pipeline/ipu3/ipu3.cpp | 6 ------ 1 file changed, 6 deletions(-) (limited to 'src/libcamera') diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp index f6e7ab46..f9b65020 100644 --- a/src/libcamera/pipeline/ipu3/ipu3.cpp +++ b/src/libcamera/pipeline/ipu3/ipu3.cpp @@ -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) -- cgit v1.2.1