From 891245c6c9a78cea6074e336d1b04a2264b2fcce Mon Sep 17 00:00:00 2001 From: Amlal El Mahrouss Date: Tue, 9 Jul 2024 18:09:09 +0200 Subject: MHR-36: IMP: NVME core driver, check ticket. Signed-off-by: Amlal El Mahrouss --- Kernel/StorageKit/NVME.hpp | 15 ++++----------- 1 file changed, 4 insertions(+), 11 deletions(-) (limited to 'Kernel/StorageKit') 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 + class NVMEDeviceInterface final : public DeviceInterface { 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; -- cgit v1.2.3