summaryrefslogtreecommitdiff
path: root/Kernel/Devices
diff options
context:
space:
mode:
authorAndreas Kling <awesomekling@gmail.com>2019-05-02 03:28:20 +0200
committerAndreas Kling <awesomekling@gmail.com>2019-05-02 03:28:20 +0200
commitc3b7ace3e0d943326575b4d6d7b6a33e47d7242a (patch)
tree3fec7ab24ff125346c7d95851b8ed30806c69b70 /Kernel/Devices
parent2dc72bb2974f12667cf8a934ba5fefcc78b6debb (diff)
downloadserenity-c3b7ace3e0d943326575b4d6d7b6a33e47d7242a.zip
Kernel: Assign Lock names in class member initializers.
Diffstat (limited to 'Kernel/Devices')
-rw-r--r--Kernel/Devices/IDEDiskDevice.cpp1
-rw-r--r--Kernel/Devices/IDEDiskDevice.h2
2 files changed, 1 insertions, 2 deletions
diff --git a/Kernel/Devices/IDEDiskDevice.cpp b/Kernel/Devices/IDEDiskDevice.cpp
index 1f57aa2d11..87b68c1c96 100644
--- a/Kernel/Devices/IDEDiskDevice.cpp
+++ b/Kernel/Devices/IDEDiskDevice.cpp
@@ -40,7 +40,6 @@ Retained<IDEDiskDevice> IDEDiskDevice::create()
IDEDiskDevice::IDEDiskDevice()
: IRQHandler(IRQ_FIXED_DISK)
- , m_lock("IDEDiskDevice")
{
initialize();
}
diff --git a/Kernel/Devices/IDEDiskDevice.h b/Kernel/Devices/IDEDiskDevice.h
index df0a22fbae..3f48679e0b 100644
--- a/Kernel/Devices/IDEDiskDevice.h
+++ b/Kernel/Devices/IDEDiskDevice.h
@@ -30,7 +30,7 @@ private:
bool read_sectors(dword start_sector, word count, byte* buffer);
bool write_sectors(dword start_sector, word count, const byte* data);
- Lock m_lock;
+ Lock m_lock { "IDEDiskDevice" };
word m_cylinders { 0 };
word m_heads { 0 };
word m_sectors_per_track { 0 };