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

Commit eb5c5a76 authored by Robert Wu's avatar Robert Wu
Browse files

Fix strategy not used compiler warning

There is a compiler warning about strategy not being used.
I checked with Eric and this seems to be intended and not
a bug. Thus, removing this extra code.

Bug: 209879413
Test: Compiles
Change-Id: I4a9b32b0f67c6576ef6dc046616f65ca6b242da5
parent bf6c4d41
Loading
Loading
Loading
Loading
+0 −2
Original line number Diff line number Diff line
@@ -4084,7 +4084,6 @@ status_t AudioFlinger::moveEffectChain_l(audio_session_t sessionId,
    // transfer all effects one by one so that new effect chain is created on new thread with
    // correct buffer sizes and audio parameters and effect engines reconfigured accordingly
    sp<EffectChain> dstChain;
    uint32_t strategy = 0; // prevent compiler warning
    sp<EffectModule> effect = chain->getEffectFromId_l(0);
    Vector< sp<EffectModule> > removed;
    status_t status = NO_ERROR;
@@ -4109,7 +4108,6 @@ status_t AudioFlinger::moveEffectChain_l(audio_session_t sessionId,
                status = NO_INIT;
                break;
            }
            strategy = dstChain->strategy();
        }
        effect = chain->getEffectFromId_l(0);
    }