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:
parent
eb1181b898
commit
39993a8fab
2 changed files with 4 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue