audio: Simplify AudioHalBinderServiceUtil::waitForFired() am: a76d4d8899

Original change: https://android-review.googlesource.com/c/platform/hardware/interfaces/+/2819039

Change-Id: I5cbe1fe61b1b36b9e49337bc0070f0c00dbbd5eb
Signed-off-by: Automerger Merge Worker <android-build-automerger-merge-worker@system.gserviceaccount.com>
This commit is contained in:
Bart Van Assche 2023-11-07 01:45:38 +00:00 committed by Automerger Merge Worker
commit fcf3a1b36b

View file

@ -71,8 +71,7 @@ class AudioHalBinderServiceUtil {
bool waitForFired(std::chrono::milliseconds timeoutMs) {
std::unique_lock<std::mutex> lock(mutex);
condition.wait_for(lock, timeoutMs, [this]() { return fired; });
return fired;
return condition.wait_for(lock, timeoutMs, [this]() { return fired; });
}
private: