diff options
author | Hendiadyoin1 <leon2002.la@gmail.com> | 2021-12-08 13:36:37 +0100 |
---|---|---|
committer | Brian Gianforcaro <b.gianfo@gmail.com> | 2021-12-09 22:53:42 -0800 |
commit | 3070252090cee3a90259ed70ded1988c346a4452 (patch) | |
tree | 7c46a2d1f2b68615d722a6de3c7f7f7ca9db5797 | |
parent | f9e8fe557c4818a02f59221f7cd31bc9b5b2a86e (diff) | |
download | serenity-3070252090cee3a90259ed70ded1988c346a4452.zip |
Kernel: Mark PCI::Address as trivially copyable
-rw-r--r-- | Kernel/Bus/PCI/Definitions.h | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/Kernel/Bus/PCI/Definitions.h b/Kernel/Bus/PCI/Definitions.h index 97c8555e8f..03c7af35d4 100644 --- a/Kernel/Bus/PCI/Definitions.h +++ b/Kernel/Bus/PCI/Definitions.h @@ -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(); } |