mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 21:37:35 +00:00
Kernel/Net: Convert initializers to return NonnullRefPtr<NetworkAdapter>
There's no need for using NonnullLockRefPtr here.
This commit is contained in:
parent
b02ee664e7
commit
9f011592be
8 changed files with 13 additions and 13 deletions
|
@ -21,7 +21,7 @@ class E1000ENetworkAdapter final
|
|||
: public E1000NetworkAdapter {
|
||||
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 ~E1000ENetworkAdapter() override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue