aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_condition_variable.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-05-09 20:15:00 -0700
committerGitHub <noreply@github.com>2021-05-09 20:15:00 -0700
commitec50a9b5b9882940a2e107889d3d909b57603626 (patch)
tree884bc2b18f440ec3058ac546718d315bf1970ad3 /src/core/hle/kernel/k_condition_variable.cpp
parentbb7d4ec3d310b843b15464bad0241ae0c9b18fa1 (diff)
parent2f62bae9e3bbdd80cd374aaf0b93890e937d5b3d (diff)
Merge pull request #6291 from lioncash/kern-shadow
kernel: Eliminate variable shadowing
Diffstat (limited to 'src/core/hle/kernel/k_condition_variable.cpp')
-rw-r--r--src/core/hle/kernel/k_condition_variable.cpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp
index f51cf3e7b..ce3bade60 100644
--- a/src/core/hle/kernel/k_condition_variable.cpp
+++ b/src/core/hle/kernel/k_condition_variable.cpp
@@ -254,8 +254,7 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) {
}
// Close threads in the list.
- for (auto it = thread_list.begin(); it != thread_list.end();
- it = thread_list.erase(kernel, it)) {
+ for (auto it = thread_list.begin(); it != thread_list.end(); it = thread_list.erase(it)) {
(*it).Close();
}
}