1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-27 12:47:35 +00:00

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

View file

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