Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f277fa14 authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Android (Google) Code Review
Browse files

Merge "Cleanup light service."

parents 316639f3 e7add018
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -27,11 +27,11 @@ int main() {
    ALOGI("Retrieving default implementation of instance %s.",
          instance);

    android::sp<ILight> service = ILight::getService(instance, true);
    android::sp<ILight> service = ILight::getService(instance, true /* getStub */);

    if (service.get() == nullptr) {
        ALOGE("ILight::getService returned NULL, exiting");
        return -1;
        return EXIT_FAILURE;
    }

    LOG_FATAL_IF(service->isRemote(), "Implementation is REMOTE!");