Merge "Remove unnecessary local variable" into main am: 06d20c6838 am: 5236c22076 am: b9f0f4bb76 am: af75d23a46
Original change: https://android-review.googlesource.com/c/platform/frameworks/av/+/2676197
Change-Id: I83071a0bf73a01364563df784dab74fd9c5293c0
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
diff --git a/media/libaudiohal/impl/EffectProxy.cpp b/media/libaudiohal/impl/EffectProxy.cpp
index fc2da6b..5e465d9 100644
--- a/media/libaudiohal/impl/EffectProxy.cpp
+++ b/media/libaudiohal/impl/EffectProxy.cpp
@@ -92,9 +92,7 @@
"noActiveEffctFound");
}
- const size_t newIndex = std::distance(mSubEffects.begin(), itor);
- mActiveSubIdx = newIndex;
-
+ mActiveSubIdx = std::distance(mSubEffects.begin(), itor);
ALOGI("%s: active %soffload sub-effect %zu descriptor: %s", __func__,
offload->isOffload ? "" : "non-", mActiveSubIdx,
::android::audio::utils::toString(mSubEffects[mActiveSubIdx].descriptor.common.id.uuid)