mirror of
https://github.com/Evolution-X/hardware_interfaces
synced 2026-02-02 20:24:19 +00:00
Merge "Cleanup light service."
This commit is contained in:
committed by
Android (Google) Code Review
commit
f277fa14d3
@@ -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!");
|
||||
|
||||
Reference in New Issue
Block a user