diff options
| author | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-07-09 18:09:09 +0200 |
|---|---|---|
| committer | Amlal El Mahrouss <amlal.elmahrouss@icloud.com> | 2024-07-09 18:09:09 +0200 |
| commit | 891245c6c9a78cea6074e336d1b04a2264b2fcce (patch) | |
| tree | 05e82ca5bd807c7646337a8c3f6adcbf630d5f17 /Kernel/StorageKit | |
| parent | 560a6c233286ec736a7a7c570efc68161c9953be (diff) | |
MHR-36: IMP: NVME core driver, check ticket.
Signed-off-by: Amlal El Mahrouss <amlal.elmahrouss@icloud.com>
Diffstat (limited to 'Kernel/StorageKit')
| -rw-r--r-- | Kernel/StorageKit/NVME.hpp | 15 |
1 files changed, 4 insertions, 11 deletions
diff --git a/Kernel/StorageKit/NVME.hpp b/Kernel/StorageKit/NVME.hpp index c7ff0e66..48761334 100644 --- a/Kernel/StorageKit/NVME.hpp +++ b/Kernel/StorageKit/NVME.hpp @@ -12,21 +12,14 @@ namespace Kernel { - class NVMEDeviceInterface : public DeviceInterface<MountpointInterface*> + class NVMEDeviceInterface final : public DeviceInterface<MountpointInterface*> { public: explicit NVMEDeviceInterface(void (*Out)(MountpointInterface* outpacket), void (*In)(MountpointInterface* inpacket), - void (*Cleanup)(void)) - : DeviceInterface(Out, In), fCleanup(Cleanup) - { - } - - virtual ~NVMEDeviceInterface() - { - if (fCleanup) - fCleanup(); - } + void (*Cleanup)(void)); + + ~NVMEDeviceInterface() override; public: NVMEDeviceInterface& operator=(const NVMEDeviceInterface&) = default; |
