1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 15:17:36 +00:00

Kernel: Avoid else after return in Process and ThreadSafeRefCounted

This commit is contained in:
Andrew Kaster 2021-10-31 16:51:08 -06:00 committed by Andreas Kling
parent eb1181b898
commit 39993a8fab
2 changed files with 4 additions and 5 deletions

View file

@ -577,10 +577,9 @@ private:
{
if (g_profiling_all_threads)
return g_global_perf_events;
else if (m_profiling)
if (m_profiling)
return m_perf_event_buffer.ptr();
else
return nullptr;
return nullptr;
}
mutable IntrusiveListNode<Process> m_list_node;