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>
This commit is contained in:
Laurent Pinchart 2021-07-06 07:41:04 +03:00
parent 033cac7f6d
commit 2eeb431a93

View file

@ -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;