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

Commit e7add018 authored by Steven Moreland's avatar Steven Moreland
Browse files

Cleanup light service.

Test: make
Change-Id: I0cd0c3309a349a5fc9a7de5b4b6ec2df33dbb822
parent d483665b
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!");