mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 15:40:19 +00:00
Kernel: Mark PCI::Address as trivially copyable
This commit is contained in:
parent
f9e8fe557c
commit
3070252090
Notes:
sideshowbarker
2024-07-17 23:01:20 +09:00
Author: https://github.com/Hendiadyoin1 Commit: https://github.com/SerenityOS/serenity/commit/3070252090c Pull-request: https://github.com/SerenityOS/serenity/pull/11188
1 changed files with 1 additions and 7 deletions
|
@ -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(); }
|
||||
|
|
Loading…
Reference in a new issue