[libcamera-devel] [PATCH v3 24/33] cam: Drop unneeded error check and message

Laurent Pinchart laurent.pinchart at ideasonboard.com
Thu Jul 15 23:14:50 CEST 2021


The EventLoop::exec() function returns the exit code of the event loop,
not an error status. Drop the corresponding error check and error
message.

Signed-off-by: Laurent Pinchart <laurent.pinchart at ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham at ideasonboard.com>
---
 src/cam/main.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

diff --git a/src/cam/main.cpp b/src/cam/main.cpp
index 2ef26353e712..19ed9837cf4f 100644
--- a/src/cam/main.cpp
+++ b/src/cam/main.cpp
@@ -313,9 +313,7 @@ int CamApp::run()
 
 	if (options_.isSet(OptMonitor)) {
 		std::cout << "Press Ctrl-C to interrupt" << std::endl;
-		ret = loop_.exec();
-		if (ret)
-			std::cout << "Failed to run monitor loop" << std::endl;
+		loop_.exec();
 	}
 
 	return 0;
-- 
Regards,

Laurent Pinchart



More information about the libcamera-devel mailing list