[libcamera-devel] [PATCH 2/3] libcamera: ipu3: Remove dead code check
Jacopo Mondi
jacopo at jmondi.org
Thu Sep 24 16:51:42 CEST 2020
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.
Signed-off-by: Jacopo Mondi <jacopo at jmondi.org>
---
src/libcamera/pipeline/ipu3/ipu3.cpp | 6 ------
1 file changed, 6 deletions(-)
diff --git a/src/libcamera/pipeline/ipu3/ipu3.cpp b/src/libcamera/pipeline/ipu3/ipu3.cpp
index 9cea6c7e9611..477f85a45755 100644
--- a/src/libcamera/pipeline/ipu3/ipu3.cpp
+++ b/src/libcamera/pipeline/ipu3/ipu3.cpp
@@ -501,12 +501,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)
--
2.28.0
More information about the libcamera-devel
mailing list