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
commit6997b030b129b77f7475a4fee5058d20b6c6290c (patch)
tree884bc2b18f440ec3058ac546718d315bf1970ad3 /src/core/hle/kernel/k_condition_variable.cpp
parent34a189140f0081c524fe237a5758eb8768e949ef (diff)
parente019da0487b1bf23e609089e3920841ce927302c (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 f51cf3e7bf..ce3bade60e 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();
}
}