aboutsummaryrefslogtreecommitdiff
path: root/src/core/hle/kernel/k_condition_variable.cpp
diff options
context:
space:
mode:
authorbunnei <bunneidev@gmail.com>2021-12-05 23:51:24 -0800
committerbunnei <bunneidev@gmail.com>2021-12-06 16:39:18 -0800
commitcd4582dc8b6c56d485341e3347753fb1b4703306 (patch)
treed8c97b47863e1963d7386fa09c6cb86cca9d1463 /src/core/hle/kernel/k_condition_variable.cpp
parent4b2aa52da9daed991fa6c89004519df5f543894c (diff)
hle: kernel: k_condition_variable: Revert unnecessary style changes.
Diffstat (limited to 'src/core/hle/kernel/k_condition_variable.cpp')
-rw-r--r--src/core/hle/kernel/k_condition_variable.cpp4
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 fcfb74ec15..aadcc297a3 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) {
void KConditionVariable::Signal(u64 cv_key, s32 count) {
// Perform signaling.
- int num_waiters = 0;
+ s32 num_waiters{};
{
KScopedSchedulerLock sl(kernel);
@@ -257,7 +257,7 @@ void KConditionVariable::Signal(u64 cv_key, s32 count) {
// If we have no waiters, clear the has waiter flag.
if (it == thread_tree.end() || it->GetConditionVariableKey() != cv_key) {
- const u32 has_waiter_flag = 0;
+ const u32 has_waiter_flag{};
WriteToUser(system, cv_key, std::addressof(has_waiter_flag));
}
}