1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-25 19:15:06 +00:00

Kernel: Add some implied auto qualifiers

This commit is contained in:
Hendiadyoin1 2021-12-29 01:01:27 +01:00 committed by Andreas Kling
parent 9346b9589f
commit 04d75f4ff9
11 changed files with 30 additions and 30 deletions

View file

@ -247,7 +247,7 @@ bool Scheduler::yield()
{
InterruptDisabler disabler;
auto current_thread = Thread::current();
auto const* current_thread = Thread::current();
dbgln_if(SCHEDULER_DEBUG, "Scheduler[{}]: yielding thread {} in_irq={}", Processor::current_id(), *current_thread, Processor::current_in_irq());
VERIFY(current_thread != nullptr);
if (Processor::current_in_irq() || Processor::in_critical()) {
@ -274,7 +274,7 @@ bool Scheduler::context_switch(Thread* thread)
thread->did_schedule();
auto from_thread = Thread::current();
auto* from_thread = Thread::current();
if (from_thread == thread)
return false;
@ -457,7 +457,7 @@ void Scheduler::timer_tick(const RegisterState& regs)
VERIFY_INTERRUPTS_DISABLED();
VERIFY(Processor::current_in_irq());
auto current_thread = Processor::current_thread();
auto* current_thread = Processor::current_thread();
if (!current_thread)
return;