rsx: Remove unnecessary "else" clauses

This commit is contained in:
kd-11 2023-11-25 03:01:21 +03:00 committed by kd-11
parent 685b3ee41b
commit 1c78584f41

View File

@ -23,23 +23,20 @@ namespace rsx
{
return ref.try_lock_shared();
}
else
{
return ref.try_lock();
}
}
void lock()
{
if constexpr (Shared)
{
ref.lock_shared();
return;
}
else
{
ref.lock();
}
}
};
}
@ -82,16 +79,15 @@ namespace rsx
if (!self || self->id_type() != 0x55u)
{
mutex_.lock();
continue;
}
else
{
while (!mutex_.try_lock())
{
self->cpu_wait({});
}
}
}
}
if (added_wait)
{