[libcamera-devel] [PATCH] cam: capture: remove unused local variable

Laurent Pinchart laurent.pinchart at ideasonboard.com
Sat Oct 26 01:41:26 CEST 2019


Hi Paul,

Thank you for the patch.

On Sat, Oct 26, 2019 at 01:40:04AM +0200, Paul Elder wrote:
> Remove unused local map variable.
> 
> Signed-off-by: Paul Elder <paul.elder at ideasonboard.com>

Reviewed-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>

> ---
>  src/cam/capture.cpp | 1 -
>  1 file changed, 1 deletion(-)
> 
> diff --git a/src/cam/capture.cpp b/src/cam/capture.cpp
> index 8a939c62..fa3922ba 100644
> --- a/src/cam/capture.cpp
> +++ b/src/cam/capture.cpp
> @@ -91,7 +91,6 @@ int Capture::capture(EventLoop *loop)
>  			return -ENOMEM;
>  		}
>  
> -		std::map<Stream *, Buffer *> map;
>  		for (StreamConfiguration &cfg : *config_) {
>  			Stream *stream = cfg.stream();
>  			std::unique_ptr<Buffer> buffer = stream->createBuffer(i);

-- 
Regards,

Laurent Pinchart


More information about the libcamera-devel mailing list