Kernel: Mark PCI::Address as trivially copyable

This commit is contained in:
Hendiadyoin1 2021-12-08 13:36:37 +01:00 committed by Brian Gianforcaro
parent f9e8fe557c
commit 3070252090
Notes: sideshowbarker 2024-07-17 23:01:20 +09:00

View file

@ -159,13 +159,7 @@ public:
{
}
Address(const Address& address)
: m_domain(address.domain())
, m_bus(address.bus())
, m_device(address.device())
, m_function(address.function())
{
}
Address(const Address& address) = default;
bool is_null() const { return !m_bus && !m_device && !m_function; }
operator bool() const { return !is_null(); }