summaryrefslogtreecommitdiff
path: root/Kernel/Storage
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-11-29 22:10:40 +0200
committerLinus Groh <mail@linusgroh.de>2022-07-19 11:07:34 +0100
commitf96e8e97e6470fe03393826f184737a918be0980 (patch)
tree02875c440432e806ca348ae485668fce080c25f7 /Kernel/Storage
parent0810c1b972cd11a69c80682828cdd3501d4aba87 (diff)
downloadserenity-f96e8e97e6470fe03393826f184737a918be0980.zip
Kernel/Storage: Remove redundant reference to a controller in IDEChannel
IDEChannel which is an ATAPort derived class holded a NonnullRefPtr to a parent IDEController, although we can easily defer the usage of it to not be in the IDEChannel code at all, so it allows to keep NonnullRefPtr to the parent ATAController in the ATAPort base class and only there.
Diffstat (limited to 'Kernel/Storage')
-rw-r--r--Kernel/Storage/ATA/GenericIDE/Channel.cpp2
-rw-r--r--Kernel/Storage/ATA/GenericIDE/Channel.h1
2 files changed, 0 insertions, 3 deletions
diff --git a/Kernel/Storage/ATA/GenericIDE/Channel.cpp b/Kernel/Storage/ATA/GenericIDE/Channel.cpp
index cf5b6c349f..854e57e058 100644
--- a/Kernel/Storage/ATA/GenericIDE/Channel.cpp
+++ b/Kernel/Storage/ATA/GenericIDE/Channel.cpp
@@ -122,7 +122,6 @@ UNMAP_AFTER_INIT IDEChannel::IDEChannel(IDEController const& controller, u8 irq,
, IRQHandler(irq)
, m_channel_type(type)
, m_io_group(io_group)
- , m_parent_controller(controller)
{
}
@@ -131,7 +130,6 @@ UNMAP_AFTER_INIT IDEChannel::IDEChannel(IDEController const& controller, IOAddre
, IRQHandler(type == ChannelType::Primary ? PATA_PRIMARY_IRQ : PATA_SECONDARY_IRQ)
, m_channel_type(type)
, m_io_group(io_group)
- , m_parent_controller(controller)
{
}
diff --git a/Kernel/Storage/ATA/GenericIDE/Channel.h b/Kernel/Storage/ATA/GenericIDE/Channel.h
index 59785d85f6..63b1538ebc 100644
--- a/Kernel/Storage/ATA/GenericIDE/Channel.h
+++ b/Kernel/Storage/ATA/GenericIDE/Channel.h
@@ -165,6 +165,5 @@ private:
bool m_interrupts_enabled { true };
IOAddressGroup m_io_group;
- NonnullRefPtr<IDEController> m_parent_controller;
};
}