1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 14:38:11 +00:00

Kernel/Net: Make the LoopbackAdapter initializer to use ErrorOr pattern

This looks much more nice, and also matches our pattern for other types
of network adapters' initializers.
This commit is contained in:
Liav A 2023-04-11 03:44:55 +03:00 committed by Linus Groh
parent 9f011592be
commit bd7d4513bf
3 changed files with 6 additions and 9 deletions

View file

@ -15,7 +15,7 @@ private:
LoopbackAdapter(NonnullOwnPtr<KString>);
public:
static LockRefPtr<LoopbackAdapter> try_create();
static ErrorOr<NonnullRefPtr<LoopbackAdapter>> try_create();
virtual ~LoopbackAdapter() override;
virtual ErrorOr<void> initialize(Badge<NetworkingManagement>) override { VERIFY_NOT_REACHED(); }