summaryrefslogtreecommitdiff
path: root/src/cam/main.cpp
diff options
context:
space:
mode:
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-06 07:41:04 +0300
committerLaurent Pinchart <laurent.pinchart@ideasonboard.com>2021-07-22 17:13:49 +0300
commit2eeb431a93942c923cf6606b15ee42c96fb7570b (patch)
tree074866af218fbffcd4ab71e5f25d93e3f2dfcf23 /src/cam/main.cpp
parent033cac7f6df5a3bd671eccf03f57103897f11c97 (diff)
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 <laurent.pinchart@ideasonboard.com> Reviewed-by: Kieran Bingham <kieran.bingham@ideasonboard.com>
Diffstat (limited to 'src/cam/main.cpp')
-rw-r--r--src/cam/main.cpp4
1 files changed, 1 insertions, 3 deletions
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;