Merge "do not getTransport before getting IHealth service."
This commit is contained in:
commit
a8a67ca103
1 changed files with 0 additions and 4 deletions
|
|
@ -71,10 +71,6 @@ using android::hidl::manager::V1_0::IServiceManager;
|
|||
|
||||
static sp<IHealth> get_health_service() {
|
||||
for (auto&& instanceName : {"default", "backup"}) {
|
||||
if (IServiceManager::getService()->getTransport(IHealth::descriptor, instanceName) ==
|
||||
IServiceManager::Transport::EMPTY) {
|
||||
continue;
|
||||
}
|
||||
auto ret = IHealth::getService(instanceName);
|
||||
if (ret != nullptr) {
|
||||
return ret;
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue