mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 20:37:34 +00:00
Kernel/HID: Don't use *LockRefPtrs in the I8042Controller code
This commit is contained in:
parent
747efc5265
commit
32557be930
4 changed files with 8 additions and 6 deletions
|
@ -17,9 +17,9 @@
|
|||
|
||||
namespace Kernel {
|
||||
|
||||
UNMAP_AFTER_INIT NonnullLockRefPtr<I8042Controller> I8042Controller::initialize()
|
||||
UNMAP_AFTER_INIT ErrorOr<NonnullRefPtr<I8042Controller>> I8042Controller::create()
|
||||
{
|
||||
return adopt_lock_ref(*new I8042Controller());
|
||||
return TRY(adopt_nonnull_ref_or_enomem(new (nothrow) I8042Controller()));
|
||||
}
|
||||
|
||||
UNMAP_AFTER_INIT I8042Controller::I8042Controller()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue