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

Kernel: Propagate errors in StorageController reset() and shutdown()

These used to signal an error with a boolean return type. We now return
a sensible errno instead.
This commit is contained in:
Julian Offenhäuser 2023-03-14 14:11:31 +01:00 committed by Andreas Kling
parent 9927dab993
commit d1e88a5141
9 changed files with 45 additions and 46 deletions

View file

@ -33,8 +33,8 @@ public:
u32 hardware_relative_controller_id() const { return m_hardware_relative_controller_id; }
protected:
virtual bool reset() = 0;
virtual bool shutdown() = 0;
virtual ErrorOr<void> reset() = 0;
virtual ErrorOr<void> shutdown() = 0;
virtual void complete_current_request(AsyncDeviceRequest::RequestResult) = 0;