do not getTransport before getting IHealth service.
getService already has getTransport logic. Test: storaged unit tests Bug: 63702641 Change-Id: I29be15e5713ac276fbbeda88224d8aef514319c6
This commit is contained in:
parent
f1b9b7e9ec
commit
3cf55ef056
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