From 2eeb431a93942c923cf6606b15ee42c96fb7570b Mon Sep 17 00:00:00 2001 From: Laurent Pinchart Date: Tue, 6 Jul 2021 07:41:04 +0300 Subject: cam: Drop unneeded error check and message 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 Reviewed-by: Kieran Bingham --- src/cam/main.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') diff --git a/src/cam/main.cpp b/src/cam/main.cpp index 2ef26353..19ed9837 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; -- cgit v1.2.1