[libcamera-devel,v3,24/33] cam: Drop unneeded error check and message
diff mbox series

Message ID 20210715211459.19373-25-laurent.pinchart@ideasonboard.com
State Accepted
Headers show
Series
  • Multi-camera support in the cam application
Related show

Commit Message

Laurent Pinchart July 15, 2021, 9:14 p.m. UTC
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@ideasonboard.com>
Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
---
 src/cam/main.cpp | 4 +---
 1 file changed, 1 insertion(+), 3 deletions(-)

Patch
diff mbox series

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;