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

Kernel: Resolve clang-tidy readability-qualified-auto warning

... In files included by Kernel/Process.cpp or Kernel/Thread.cpp
This commit is contained in:
Andrew Kaster 2021-10-31 16:36:52 -06:00 committed by Andreas Kling
parent 65edc62c02
commit e824bead54
4 changed files with 12 additions and 12 deletions

View file

@ -135,7 +135,7 @@ public:
auto expected_wakeup = last_wakeup + ideal_interval;
auto delay = (now > expected_wakeup) ? now - expected_wakeup : Time::from_microseconds(0);
last_wakeup = now;
auto current_thread = Thread::current();
auto* current_thread = Thread::current();
// FIXME: We currently don't collect samples while idle.
// That will be an interesting mode to add in the future. :^)
if (!current_thread || current_thread == Processor::idle_thread())