From e0d1f119680e9fa842ade586106bcc6740930583 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Thu, 14 Mar 2019 21:51:03 -0400 Subject: kernel/thread: Make bracing consistent within UpdatePriority() --- src/core/hle/kernel/thread.cpp | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'src/core/hle/kernel/thread.cpp') diff --git a/src/core/hle/kernel/thread.cpp b/src/core/hle/kernel/thread.cpp index 4b68b555f..c5cee12dd 100644 --- a/src/core/hle/kernel/thread.cpp +++ b/src/core/hle/kernel/thread.cpp @@ -306,12 +306,14 @@ void Thread::UpdatePriority() { // Find the highest priority among all the threads that are waiting for this thread's lock u32 new_priority = nominal_priority; if (!wait_mutex_threads.empty()) { - if (wait_mutex_threads.front()->current_priority < new_priority) + if (wait_mutex_threads.front()->current_priority < new_priority) { new_priority = wait_mutex_threads.front()->current_priority; + } } - if (new_priority == current_priority) + if (new_priority == current_priority) { return; + } scheduler->SetThreadPriority(this, new_priority); current_priority = new_priority; -- cgit v1.2.3