sm8150-common: sensors: Remove early break for sub-HAL initialization failure

Bug: 212420575
Test: none
Change-Id: I38099a4edbdeffe99ae2d91fc9dc518c9da98b13
This commit is contained in:
Yixuan Wang 2022-01-26 16:55:45 +00:00 committed by TimoDo
parent 5f490fb597
commit 8d073840b1
1 changed files with 2 additions and 2 deletions

View File

@ -263,8 +263,8 @@ Return<Result> HalProxy::initializeCommon(
Result currRes = mSubHalList[i]->initialize(this, this, i); Result currRes = mSubHalList[i]->initialize(this, this, i);
if (currRes != Result::OK) { if (currRes != Result::OK) {
result = currRes; result = currRes;
ALOGE("Subhal '%s' failed to initialize.", mSubHalList[i]->getName().c_str()); ALOGE("Subhal '%s' failed to initialize with reason %" PRId32 ".",
break; mSubHalList[i]->getName().c_str(), static_cast<int32_t>(currRes));
} }
} }