mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-28 11:49:44 +00:00
Kernel: Store IRQControllers in NonnullRefPtrs instead of RefPtrs
These are always non-null, so there's no point in storing them in a nullable container.
This commit is contained in:
parent
176989d811
commit
9abbeff79f
Notes:
sideshowbarker
2024-07-17 12:02:22 +09:00
Author: https://github.com/IdanHo
Commit: 9abbeff79f
Pull-request: https://github.com/SerenityOS/serenity/pull/15353
Reviewed-by: https://github.com/linusg ✅
Reviewed-by: https://github.com/supercomputer7 ✅
8 changed files with 13 additions and 15 deletions
|
@ -42,7 +42,7 @@ private:
|
|||
explicit SpuriousInterruptHandler(u8 interrupt_number);
|
||||
bool m_enabled { false };
|
||||
bool m_real_irq { false };
|
||||
LockRefPtr<IRQController> m_responsible_irq_controller;
|
||||
NonnullLockRefPtr<IRQController> m_responsible_irq_controller;
|
||||
OwnPtr<GenericInterruptHandler> m_real_handler;
|
||||
};
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue