diff --git a/livedisplay/service.cpp b/livedisplay/service.cpp index d9ae82a..d040c88 100644 --- a/livedisplay/service.cpp +++ b/livedisplay/service.cpp @@ -46,29 +46,9 @@ int main() { LOG(INFO) << "LiveDisplay HAL service is starting."; std::shared_ptr controller = std::make_shared(); - sp dm; - sp pa; - sp se; - - dm = new DisplayModes(); - if (dm == nullptr) { - LOG(ERROR) << "Can not create an instance of LiveDisplay HAL DisplayModes Iface, exiting."; - goto shutdown; - } - - pa = new PictureAdjustment(controller); - if (pa == nullptr) { - LOG(ERROR) << "Can not create an instance of LiveDisplay HAL PictureAdjustment Iface, " - "exiting."; - goto shutdown; - } - - se = new SunlightEnhancement(); - if (se == nullptr) { - LOG(ERROR) << "Can not create an instance of LiveDisplay HAL SunlightEnhancement Iface, " - "exiting."; - goto shutdown; - } + sp dm = new DisplayModes(); + sp pa = new PictureAdjustment(controller); + sp se = new SunlightEnhancement(); configureRpcThreadpool(1, true /*callerWillJoin*/);