[libcamera-devel] [PATCH 2/3] libcamera: ipu3: Remove dead code check
Niklas Söderlund
niklas.soderlund at ragnatech.se
Tue Sep 29 07:35:27 CEST 2020
Hi Jacopo,
Thanks for your patch.
On 2020-09-24 16:51:42 +0200, Jacopo Mondi wrote:
> 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>
Reviewed-by: Niklas Söderlund <niklas.soderlund at ragnatech.se>
> ---
> 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
>
> _______________________________________________
> libcamera-devel mailing list
> libcamera-devel at lists.libcamera.org
> https://lists.libcamera.org/listinfo/libcamera-devel
--
Regards,
Niklas Söderlund
More information about the libcamera-devel
mailing list