Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 4fe66445 authored by Shunkai Yao's avatar Shunkai Yao
Browse files

Remove unnecessary local variable

Bug: 271500140
Test: Enavble AIDL
Test: atest EffectProxyTest
Change-Id: I6849e9631a520cc30247063479ba1b5d358d7d4b
parent f64cb030
Loading
Loading
Loading
Loading
+1 −3
Original line number Diff line number Diff line
@@ -92,9 +92,7 @@ ndk::ScopedAStatus EffectProxy::setOffloadParam(const effect_offload_param_t* of
                                                                "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)