Merge "do not getTransport before getting IHealth service."

This commit is contained in:
Yifan Hong 2017-11-07 06:41:18 +00:00 committed by Android (Google) Code Review
commit a8a67ca103

View file

@ -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;