diff options
| author | 2021-12-05 23:51:24 -0800 | |
|---|---|---|
| committer | 2021-12-06 16:39:18 -0800 | |
| commit | 2e8d737a96f2326fe773ff29d2103d3a38c62df1 (patch) | |
| tree | d8c97b47863e1963d7386fa09c6cb86cca9d1463 /src | |
| parent | hle: kernel: Remove unnecessary virtual specifier on CancelWait. (diff) | |
| download | yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.gz yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.tar.xz yuzu-2e8d737a96f2326fe773ff29d2103d3a38c62df1.zip | |
hle: kernel: k_condition_variable: Revert unnecessary style changes.
Diffstat (limited to 'src')
| -rw-r--r-- | src/core/hle/kernel/k_condition_variable.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/core/hle/kernel/k_condition_variable.cpp b/src/core/hle/kernel/k_condition_variable.cpp index fcfb74ec1..aadcc297a 100644 --- a/src/core/hle/kernel/k_condition_variable.cpp +++ b/src/core/hle/kernel/k_condition_variable.cpp | |||
| @@ -240,7 +240,7 @@ void KConditionVariable::SignalImpl(KThread* thread) { | |||
| 240 | 240 | ||
| 241 | void KConditionVariable::Signal(u64 cv_key, s32 count) { | 241 | void KConditionVariable::Signal(u64 cv_key, s32 count) { |
| 242 | // Perform signaling. | 242 | // Perform signaling. |
| 243 | int num_waiters = 0; | 243 | s32 num_waiters{}; |
| 244 | { | 244 | { |
| 245 | KScopedSchedulerLock sl(kernel); | 245 | KScopedSchedulerLock sl(kernel); |
| 246 | 246 | ||
| @@ -257,7 +257,7 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) { | |||
| 257 | 257 | ||
| 258 | // If we have no waiters, clear the has waiter flag. | 258 | // If we have no waiters, clear the has waiter flag. |
| 259 | if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) { | 259 | if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) { |
| 260 | const u32 has_waiter_flag = 0; | 260 | const u32 has_waiter_flag{}; |
| 261 | WriteToUser(system, cv_key, std::addressof(has_waiter_flag)); | 261 | WriteToUser(system, cv_key, std::addressof(has_waiter_flag)); |
| 262 | } | 262 | } |
| 263 | } | 263 | } |