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

Kernel/Net: Convert initializers to return NonnullRefPtr<NetworkAdapter>

There's no need for using NonnullLockRefPtr here.
This commit is contained in:
Liav A 2023-04-11 03:41:49 +03:00 committed by Linus Groh
parent b02ee664e7
commit 9f011592be
8 changed files with 13 additions and 13 deletions

View file

@ -22,7 +22,7 @@ class RTL8168NetworkAdapter final : public NetworkAdapter
, public IRQHandler {
public:
static ErrorOr<bool> probe(PCI::DeviceIdentifier const&);
static ErrorOr<NonnullLockRefPtr<NetworkAdapter>> create(PCI::DeviceIdentifier const&);
static ErrorOr<NonnullRefPtr<NetworkAdapter>> create(PCI::DeviceIdentifier const&);
virtual ErrorOr<void> initialize(Badge<NetworkingManagement>) override;
virtual ~RTL8168NetworkAdapter() override;