From 3cf55ef0565e0b4d15f49dce8694a17db98cc252 Mon Sep 17 00:00:00 2001 From: Yifan Hong Date: Fri, 3 Nov 2017 13:20:10 -0700 Subject: [PATCH] do not getTransport before getting IHealth service. getService already has getTransport logic. Test: storaged unit tests Bug: 63702641 Change-Id: I29be15e5713ac276fbbeda88224d8aef514319c6 --- storaged/storaged.cpp | 4 ---- 1 file changed, 4 deletions(-) diff --git a/storaged/storaged.cpp b/storaged/storaged.cpp index 39c347a07..c94137cfd 100644 --- a/storaged/storaged.cpp +++ b/storaged/storaged.cpp @@ -71,10 +71,6 @@ using android::hidl::manager::V1_0::IServiceManager; static sp 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;