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

Commit 99df7ced authored by Yi Kong's avatar Yi Kong
Browse files

security: Remove unnecessary std::move

Moving a temporary object prevents copy elision, and could reduce
performance.

This fixes -Wpessimizing-move compiler warning.

Test: presubmit
Bug: 154270751
Change-Id: I378f1b9029f1a0711728ff14e4071263ad330504
parent fc8d55a0
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -151,7 +151,7 @@ void KeyMintAttestationFuzzer::process() {

extern "C" int LLVMFuzzerInitialize(int /* *argc */, char /* ***argv */) {
    ::ndk::SpAIBinder binder(AServiceManager_waitForService(kServiceName.c_str()));
    gKeyMint = std::move(IKeyMintDevice::fromBinder(binder));
    gKeyMint = IKeyMintDevice::fromBinder(binder);
    LOG_ALWAYS_FATAL_IF(!gKeyMint, "Failed to get IKeyMintDevice instance.");
    return 0;
}